Flutter Engine
The Flutter Engine
|
#include <DrawCommand.h>
Public Member Functions | |
DrawCommand (OpType opType) | |
virtual | ~DrawCommand () |
bool | isVisible () const |
void | setVisible (bool toggle) |
virtual void | execute (SkCanvas *) const =0 |
virtual bool | render (SkCanvas *canvas) const |
virtual void | toJSON (SkJSONWriter &writer, UrlDataManager &urlDataManager) const |
OpType | getOpType () const |
Static Public Member Functions | |
static void | WritePNG (const SkBitmap &bitmap, SkWStream &out) |
static const char * | GetCommandString (OpType type) |
static void | MakeJsonColor (SkJSONWriter &, const SkColor color) |
static void | MakeJsonColor4f (SkJSONWriter &, const SkColor4f &color) |
static void | MakeJsonPoint (SkJSONWriter &, const SkPoint &point) |
static void | MakeJsonPoint (SkJSONWriter &, SkScalar x, SkScalar y) |
static void | MakeJsonPoint3 (SkJSONWriter &, const SkPoint3 &point) |
static void | MakeJsonRect (SkJSONWriter &, const SkRect &rect) |
static void | MakeJsonIRect (SkJSONWriter &, const SkIRect &) |
static void | MakeJsonMatrix (SkJSONWriter &, const SkMatrix &) |
static void | MakeJsonMatrix44 (SkJSONWriter &, const SkM44 &) |
static void | MakeJsonPath (SkJSONWriter &, const SkPath &path) |
static void | MakeJsonRegion (SkJSONWriter &, const SkRegion ®ion) |
static void | MakeJsonSampling (SkJSONWriter &, const SkSamplingOptions &sampling) |
static void | MakeJsonPaint (SkJSONWriter &, const SkPaint &paint, UrlDataManager &urlDataManager) |
static void | MakeJsonLattice (SkJSONWriter &, const SkCanvas::Lattice &lattice) |
static void | flatten (const SkFlattenable *flattenable, SkJSONWriter &writer, UrlDataManager &urlDataManager) |
static bool | flatten (const SkImage &image, SkJSONWriter &writer, UrlDataManager &urlDataManager) |
static bool | flatten (const SkBitmap &bitmap, SkJSONWriter &writer, UrlDataManager &urlDataManager) |
Static Public Attributes | |
static const int | kOpTypeCount = kLast_OpType + 1 |
Definition at line 53 of file DrawCommand.h.
enum DrawCommand::OpType |
Definition at line 55 of file DrawCommand.h.
DrawCommand::DrawCommand | ( | OpType | opType | ) |
Definition at line 232 of file DrawCommand.cpp.
|
inlinevirtual |
Definition at line 106 of file DrawCommand.h.
|
pure virtual |
Implemented in RestoreCommand, ClearCommand, ClipPathCommand, ClipRegionCommand, ClipRectCommand, ClipRRectCommand, ClipShaderCommand, ResetClipCommand, ConcatCommand, Concat44Command, DrawAnnotationCommand, DrawImageCommand, DrawImageLatticeCommand, DrawImageRectCommand, DrawImageRectLayerCommand, DrawOvalCommand, DrawArcCommand, DrawPaintCommand, DrawBehindCommand, DrawPathCommand, BeginDrawPictureCommand, EndDrawPictureCommand, DrawPointsCommand, DrawRegionCommand, DrawTextBlobCommand, DrawPatchCommand, DrawRectCommand, DrawRRectCommand, DrawDRRectCommand, DrawVerticesCommand, DrawAtlasCommand, SaveCommand, SaveLayerCommand, SetMatrixCommand, SetM44Command, DrawShadowCommand, DrawDrawableCommand, DrawEdgeAAQuadCommand, and DrawEdgeAAImageSetCommand.
|
static |
Definition at line 732 of file DrawCommand.cpp.
|
static |
Definition at line 630 of file DrawCommand.cpp.
|
static |
Definition at line 661 of file DrawCommand.cpp.
|
static |
Definition at line 234 of file DrawCommand.cpp.
|
inline |
Definition at line 143 of file DrawCommand.h.
|
inline |
Definition at line 108 of file DrawCommand.h.
|
static |
Definition at line 400 of file DrawCommand.cpp.
|
static |
Definition at line 409 of file DrawCommand.cpp.
|
static |
Definition at line 449 of file DrawCommand.cpp.
|
static |
Definition at line 972 of file DrawCommand.cpp.
|
static |
Definition at line 468 of file DrawCommand.cpp.
|
static |
Definition at line 480 of file DrawCommand.cpp.
|
static |
Definition at line 928 of file DrawCommand.cpp.
|
static |
Definition at line 492 of file DrawCommand.cpp.
|
static |
Definition at line 418 of file DrawCommand.cpp.
|
static |
Definition at line 425 of file DrawCommand.cpp.
|
static |
Definition at line 432 of file DrawCommand.cpp.
|
static |
Definition at line 440 of file DrawCommand.cpp.
|
static |
Definition at line 572 of file DrawCommand.cpp.
|
static |
Definition at line 579 of file DrawCommand.cpp.
|
inlinevirtual |
Reimplemented in ClipPathCommand, ClipRRectCommand, ClipShaderCommand, DrawImageCommand, DrawImageLatticeCommand, DrawImageRectCommand, DrawImageRectLayerCommand, DrawOvalCommand, DrawArcCommand, DrawPaintCommand, DrawBehindCommand, DrawPathCommand, BeginDrawPictureCommand, DrawPointsCommand, DrawRegionCommand, DrawTextBlobCommand, DrawRRectCommand, DrawDRRectCommand, and DrawShadowCommand.
Definition at line 114 of file DrawCommand.h.
|
inline |
Definition at line 110 of file DrawCommand.h.
|
virtual |
Reimplemented in ClearCommand, ClipPathCommand, ClipRegionCommand, ClipRectCommand, ClipRRectCommand, ClipShaderCommand, ConcatCommand, Concat44Command, DrawAnnotationCommand, DrawImageCommand, DrawImageLatticeCommand, DrawImageRectCommand, DrawImageRectLayerCommand, DrawOvalCommand, DrawArcCommand, DrawPaintCommand, DrawBehindCommand, DrawPathCommand, DrawPointsCommand, DrawRegionCommand, DrawTextBlobCommand, DrawPatchCommand, DrawRectCommand, DrawRRectCommand, DrawDRRectCommand, SaveLayerCommand, SetMatrixCommand, SetM44Command, and DrawShadowCommand.
Definition at line 284 of file DrawCommand.cpp.
Definition at line 650 of file DrawCommand.cpp.
|
static |
Definition at line 100 of file DrawCommand.h.