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

Unified Diff: gm/multipicturedraw.cpp

Issue 632743002: Fix multipicturedraw_biglayer GM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/multipicturedraw.cpp
diff --git a/gm/multipicturedraw.cpp b/gm/multipicturedraw.cpp
index afa83e517674404d46055bb84b9da86ef48daa5e..8ce3deb7638a251f8da84634ac4e30fd4eb084d0 100644
--- a/gm/multipicturedraw.cpp
+++ b/gm/multipicturedraw.cpp
@@ -106,6 +106,8 @@ static const SkPicture* make_single_layer_hex_plane_picture() {
static const SkScalar kBig = 10000.0f;
SkCanvas* canvas = recorder.beginRecording(kBig, kBig);
+ canvas->saveLayer(NULL, NULL);
+
SkScalar xPos = 0.0f, yPos = 0.0f;
for (int y = 0; yPos < kBig; ++y) {
@@ -127,6 +129,8 @@ static const SkPicture* make_single_layer_hex_plane_picture() {
yPos += 2 * kHexSide * kRoot3Over2;
}
+ canvas->restore();
+
return recorder.endRecording();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698