diff options
author | reed <reed@google.com> | 2015-06-24 10:29:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-24 10:29:18 -0700 |
commit | 71c3c760a83123ee0b3127b8c65c6394ce541c50 (patch) | |
tree | d0a2492c668d2263874cdc0409056747f0a2fa5e /src/core/SkPictureFlat.h | |
parent | 52d4deb1288633551ad275be748d8b0f73d7b2aa (diff) |
add SkCanvas::drawAtlas
BUG=skia:
Review URL: https://codereview.chromium.org/1181913003
Diffstat (limited to 'src/core/SkPictureFlat.h')
-rw-r--r-- | src/core/SkPictureFlat.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h index 8720e19751..07411002ae 100644 --- a/src/core/SkPictureFlat.h +++ b/src/core/SkPictureFlat.h @@ -71,8 +71,9 @@ enum DrawType { DRAW_TEXT_BLOB, DRAW_IMAGE, DRAW_IMAGE_RECT, + DRAW_ATLAS, - LAST_DRAWTYPE_ENUM = DRAW_IMAGE_RECT + LAST_DRAWTYPE_ENUM = DRAW_ATLAS }; // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* @@ -85,6 +86,11 @@ enum DrawVertexFlags { DRAW_VERTICES_HAS_XFER = 0x08, }; +enum DrawAtlasFlags { + DRAW_ATLAS_HAS_COLORS = 1 << 0, + DRAW_ATLAS_HAS_CULL = 1 << 1, +}; + /////////////////////////////////////////////////////////////////////////////// // clipparams are packed in 5 bits // doAA:1 | regionOp:4 |