Flutter Engine
The Flutter Engine
Classes | Functions
Draw.h File Reference
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkSurface.h"
#include <string>

Go to the source code of this file.

Classes

struct  GMOutput
 

Functions

GMOutput draw (skiagm::GM *gm, SkSurface *surface, std::string via)
 

Function Documentation

◆ draw()

GMOutput draw ( skiagm::GM gm,
SkSurface surface,
std::string  via 
)

Definition at line 182 of file SimpleVias.cpp.

182 {
183 if (via == "direct") {
184 return draw_direct(gm, surface);
185 } else if (via == "picture") {
186 return draw_via_picture(gm, surface, /* serialize= */ false);
187 } else if (via == "picture_serialization") {
188 return draw_via_picture(gm, surface, /* serialize= */ true);
189 }
190 SK_ABORT("unknown --via flag value: %s", via.c_str());
191}
static GMOutput draw_direct(skiagm::GM *gm, SkSurface *surface)
Definition: SimpleVias.cpp:28
static GMOutput draw_via_picture(skiagm::GM *gm, SkSurface *surface, bool serialize)
Definition: SimpleVias.cpp:90
#define SK_ABORT(message,...)
Definition: SkAssert.h:70
VkSurfaceKHR surface
Definition: main.cc:49