Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: include/private/SkRecords.h

Issue 2127233002: Added the framework for having canvas/recorder/picture record depth_set's. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/private/SkRecords.h
diff --git a/include/private/SkRecords.h b/include/private/SkRecords.h
index d6ef12fe6c36491229f83253d921f8f914a52ffc..5f8c3e920836efd646351e9f83c64da70b0f40ee 100644
--- a/include/private/SkRecords.h
+++ b/include/private/SkRecords.h
@@ -47,6 +47,7 @@ namespace SkRecords {
M(Save) \
M(SaveLayer) \
M(SetMatrix) \
+ M(SetZ) \
M(Concat) \
M(ClipPath) \
M(ClipRRect) \
@@ -79,6 +80,8 @@ namespace SkRecords {
M(DrawVertices) \
M(DrawAnnotation)
+// setZ is Victor
jvanverth1 2016/07/07 18:43:02 Remove this comment?
vjiaoblack 2016/07/07 19:04:10 Done.
+
// Defines SkRecords::Type, an enum of all record types.
#define ENUM(T) T##_Type,
enum Type { SK_RECORD_TYPES(ENUM) };
@@ -217,6 +220,9 @@ RECORD(SetMatrix, 0,
RECORD(Concat, 0,
TypedMatrix matrix);
+// TEST_VICTOR
jvanverth1 2016/07/07 18:43:02 Remove this comment?
+RECORD(SetZ, 0, uint32_t z);
+
struct RegionOpAndAA {
RegionOpAndAA() {}
RegionOpAndAA(SkRegion::Op op, bool aa) : op(op), aa(aa) {}
@@ -248,6 +254,7 @@ RECORD(DrawBitmap, kDraw_Tag|kHasImage_Tag,
ImmutableBitmap bitmap;
SkScalar left;
SkScalar top);
+ //uint8_t zLevel);
jvanverth1 2016/07/07 18:43:02 Is this needed?
RECORD(DrawBitmapNine, kDraw_Tag|kHasImage_Tag,
Optional<SkPaint> paint;
ImmutableBitmap bitmap;

Powered by Google App Engine
This is Rietveld 408576698