Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkFont.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkSurface.h"
#include "include/core/SkSurfaceProps.h"
#include "include/core/SkTileMode.h"
#include "include/core/SkTypeface.h"
#include "include/core/SkTypes.h"
#include "include/effects/SkGradientShader.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/GrRecordingContext.h"
#include "include/gpu/ganesh/SkSurfaceGanesh.h"
#include "include/utils/SkTextUtils.h"
#include "tools/ToolUtils.h"
#include "tools/fonts/FontToolUtils.h"
#include "tools/gpu/BackendSurfaceFactory.h"
Go to the source code of this file.
Classes | |
class | SurfacePropsGM |
class | NewSurfaceGM |
Macros | |
#define | W 800 |
#define | H 100 |
#define | DEF_BASIC_SURFACE_TEST(name, canvas, main, W, H) |
#define | DEF_BACKEND_SURFACE_TEST(name, canvas, main, type, W, H) |
#define | DEF_BET_SURFACE_TEST(name, canvas, main, W, H) |
#define | DEF_BERT_SURFACE_TEST(name, canvas, main, W, H) |
#define | DEF_SURFACE_TESTS(name, canvas, W, H) |
Typedefs | |
using | MakeSurfaceFn = std::function< sk_sp< SkSurface >(const SkImageInfo &)> |
Functions | |
static sk_sp< SkShader > | make_shader () |
static sk_sp< SkSurface > | make_surface (GrRecordingContext *ctx, const SkImageInfo &info, SkPixelGeometry geo, SkScalar contrast, SkScalar gamma) |
static void | test_draw (SkCanvas *canvas, const char label[]) |
static sk_sp< SkSurface > | make_surface (const SkImageInfo &ii, SkCanvas *canvas, SurfaceType type) |
DEF_SURFACE_TESTS (copy_on_write_retain, canvas, 256, 256) | |
DEF_SURFACE_TESTS (copy_on_write_retain2, canvas, 256, 256) | |
DEF_SURFACE_TESTS (simple_snap_image, canvas, 256, 256) | |
DEF_SURFACE_TESTS (simple_snap_image2, canvas, 256, 256) | |
DEF_SIMPLE_GM (snap_with_mips, canvas, 80, 75) | |
DEF_SURFACE_TESTS (copy_on_write_savelayer, canvas, 256, 256) | |
DEF_SURFACE_TESTS (surface_underdraw, canvas, 256, 256) | |
Definition at line 232 of file surface.cpp.
Definition at line 224 of file surface.cpp.
Definition at line 248 of file surface.cpp.
Definition at line 244 of file surface.cpp.
Definition at line 254 of file surface.cpp.
#define H 100 |
Definition at line 39 of file surface.cpp.
#define W 800 |
Definition at line 38 of file surface.cpp.
using MakeSurfaceFn = std::function<sk_sp<SkSurface>(const SkImageInfo&)> |
Definition at line 222 of file surface.cpp.
DEF_SIMPLE_GM | ( | snap_with_mips | , |
canvas | , | ||
80 | , | ||
75 | |||
) |
Definition at line 321 of file surface.cpp.
DEF_SURFACE_TESTS | ( | copy_on_write_retain | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 261 of file surface.cpp.
DEF_SURFACE_TESTS | ( | copy_on_write_retain2 | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 280 of file surface.cpp.
DEF_SURFACE_TESTS | ( | copy_on_write_savelayer | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 362 of file surface.cpp.
DEF_SURFACE_TESTS | ( | simple_snap_image | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 299 of file surface.cpp.
DEF_SURFACE_TESTS | ( | simple_snap_image2 | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 310 of file surface.cpp.
DEF_SURFACE_TESTS | ( | surface_underdraw | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 383 of file surface.cpp.
Definition at line 41 of file surface.cpp.
|
static |
Definition at line 203 of file surface.cpp.
|
static |
Definition at line 49 of file surface.cpp.
|
static |
Definition at line 62 of file surface.cpp.