summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-11 21:21:43 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-11 21:21:43 +0000
commit818b3aad74d9d9eb8e249cfe530b1c013c9e44fd (patch)
treeca5b55061554c9359f39a13901ca83ab13d944f7 /ui
parent3b2970c1d35945588c9ad614a4f051910eb0afa7 (diff)
downloadchromium_src-818b3aad74d9d9eb8e249cfe530b1c013c9e44fd.zip
chromium_src-818b3aad74d9d9eb8e249cfe530b1c013c9e44fd.tar.gz
chromium_src-818b3aad74d9d9eb8e249cfe530b1c013c9e44fd.tar.bz2
Fixes calling Restore() without Save() in ui::Layer
Bug=None Test=None Review URL: https://chromiumcodereview.appspot.com/10546070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141504 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/compositor/layer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index b965e1c..1031bf1 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_));
}