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

Unified Diff: ui/compositor/layer.cc

Issue 10546070: Fixes calling Restore() without Save() in ui::Layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index b965e1cea7ebf114bce5b2f5806917171f126744..1031bf1d738a93189df7d37913852787fd6b14e6 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -428,6 +428,7 @@ void Layer::paintContents(WebKit::WebCanvas* web_canvas,
gfx::Canvas canvas(web_canvas);
bool scale_content = scale_content_;
if (scale_content) {
+ canvas.Save();
canvas.sk_canvas()->scale(SkFloatToScalar(device_scale_factor_),
SkFloatToScalar(device_scale_factor_));
}
« 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