aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureFlat.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-06-24 10:29:17 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-24 10:29:18 -0700
commit71c3c760a83123ee0b3127b8c65c6394ce541c50 (patch)
treed0a2492c668d2263874cdc0409056747f0a2fa5e /src/core/SkPictureFlat.h
parent52d4deb1288633551ad275be748d8b0f73d7b2aa (diff)
add SkCanvas::drawAtlas
Diffstat (limited to 'src/core/SkPictureFlat.h')
-rw-r--r--src/core/SkPictureFlat.h8
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