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

Unified Diff: skia/ext/bitmap_platform_device_win.cc

Issue 12257016: (Not ready for review!) Toolbar and views high dpi support. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cleaned up more useless diffs. Created 7 years, 10 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 | « content/browser/web_contents/web_contents_impl.cc ('k') | skia/ext/platform_device_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_win.cc
diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc
index 201866aa17ef79da7cbef12ddd6b75b0e93ea90b..a34b316f11805f6c104e6f0f043db5888c8859bc 100644
--- a/skia/ext/bitmap_platform_device_win.cc
+++ b/skia/ext/bitmap_platform_device_win.cc
@@ -259,7 +259,8 @@ void BitmapPlatformDevice::DrawToNativeContext(HDC dc, int x, int y,
// upper left anymore
SkMatrix identity;
identity.reset();
-
+ SkMatrix t = data_->transform();
+ if (t.isIdentity()) {
LoadTransformToDC(source_dc, identity);
if (isOpaque()) {
BitBlt(dc,
@@ -287,7 +288,7 @@ void BitmapPlatformDevice::DrawToNativeContext(HDC dc, int x, int y,
blend_function);
}
LoadTransformToDC(source_dc, data_->transform());
-
+ }
EndPlatformPaint();
if (created_dc)
data_->ReleaseBitmapDC();
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | skia/ext/platform_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698