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

Unified Diff: gm/canvasstate.cpp

Issue 23757008: Revert "Create a semi-stable API for capturing the state of an SkCanvas and reconstructing that sta… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | gyp/tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/canvasstate.cpp
diff --git a/gm/canvasstate.cpp b/gm/canvasstate.cpp
index d3eb84e7d3ac6373d1459ae5d270b684250acc56..5dc90ef2ae6a6c711f459fc3cbb72b99de31f0c2 100644
--- a/gm/canvasstate.cpp
+++ b/gm/canvasstate.cpp
@@ -112,6 +112,9 @@ private:
class CanvasLayerStateGM : public GM {
public:
CanvasLayerStateGM() {
+ fRedPaint.setColor(SK_ColorRED);
+ fRedPaint.setStyle(SkPaint::kFill_Style);
+
fBluePaint.setColor(SK_ColorBLUE);
fBluePaint.setStyle(SkPaint::kFill_Style);
@@ -164,6 +167,7 @@ private:
SPACER = 10,
};
+ SkPaint fRedPaint;
SkPaint fBluePaint;
SkRect fRect;
« no previous file with comments | « no previous file | gyp/tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698