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, skgpu::graphite::Recorder *recorder, const SkImageInfo &info, uint32_t flags, 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 250 of file surface.cpp.
Definition at line 242 of file surface.cpp.
Definition at line 266 of file surface.cpp.
Definition at line 262 of file surface.cpp.
Definition at line 272 of file surface.cpp.
#define H 100 |
Definition at line 42 of file surface.cpp.
#define W 800 |
Definition at line 41 of file surface.cpp.
using MakeSurfaceFn = std::function<sk_sp<SkSurface>(const SkImageInfo&)> |
Definition at line 240 of file surface.cpp.
DEF_SIMPLE_GM | ( | snap_with_mips | , |
canvas | , | ||
80 | , | ||
75 | |||
) |
Definition at line 339 of file surface.cpp.
DEF_SURFACE_TESTS | ( | copy_on_write_retain | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 279 of file surface.cpp.
DEF_SURFACE_TESTS | ( | copy_on_write_retain2 | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 298 of file surface.cpp.
DEF_SURFACE_TESTS | ( | copy_on_write_savelayer | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 380 of file surface.cpp.
DEF_SURFACE_TESTS | ( | simple_snap_image | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 317 of file surface.cpp.
DEF_SURFACE_TESTS | ( | simple_snap_image2 | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 328 of file surface.cpp.
DEF_SURFACE_TESTS | ( | surface_underdraw | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 401 of file surface.cpp.
Definition at line 44 of file surface.cpp.
|
static |
Definition at line 221 of file surface.cpp.
|
static |
Definition at line 52 of file surface.cpp.
|
static |
Definition at line 72 of file surface.cpp.