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

Unified Diff: include/private/SkRecords.h

Issue 2146073003: Creating framework for drawShadowedPicture (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 35adca20e7aea0c6f1e5eb4cd3eb6b0a721bf7a2..518d40972bc3dc6f7db120e533e7e6dd1bb3df05 100644
--- a/include/private/SkRecords.h
+++ b/include/private/SkRecords.h
@@ -68,6 +68,7 @@ namespace SkRecords {
M(DrawPath) \
M(DrawPatch) \
M(DrawPicture) \
+ M(DrawShadowedPicture) \
M(DrawPoints) \
M(DrawPosText) \
M(DrawPosTextH) \
@@ -81,6 +82,8 @@ namespace SkRecords {
M(DrawVertices) \
M(DrawAnnotation)
+// setZ is Victor
+
// Defines SkRecords::Type, an enum of all record types.
#define ENUM(T) T##_Type,
enum Type { SK_RECORD_TYPES(ENUM) };
@@ -252,6 +255,7 @@ RECORD(DrawBitmap, kDraw_Tag|kHasImage_Tag,
ImmutableBitmap bitmap;
SkScalar left;
SkScalar top);
+ //uint8_t zLevel);
RECORD(DrawBitmapNine, kDraw_Tag|kHasImage_Tag,
Optional<SkPaint> paint;
ImmutableBitmap bitmap;
@@ -309,6 +313,10 @@ RECORD(DrawPicture, kDraw_Tag,
Optional<SkPaint> paint;
RefBox<const SkPicture> picture;
TypedMatrix matrix);
+RECORD(DrawShadowedPicture, kDraw_Tag,
+ Optional<SkPaint> paint;
+ RefBox<const SkPicture> picture;
+ sk_sp<SkLights> lights);
RECORD(DrawPoints, kDraw_Tag,
SkPaint paint;
SkCanvas::PointMode mode;
« include/core/SkCanvas.h ('K') | « include/core/SkLights.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698