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

Unified Diff: skia/ext/skia_utils_mac.h

Issue 611253004: Fix pixeldated HiDPI Mac widgets with impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 6 years, 3 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 | skia/ext/skia_utils_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_mac.h
diff --git a/skia/ext/skia_utils_mac.h b/skia/ext/skia_utils_mac.h
index e087867ffb483e4cb3b230d7adf2d9aa59a71a5e..b60f9e8ad534d4601dd61deb7548df9f7e884ff3 100644
--- a/skia/ext/skia_utils_mac.h
+++ b/skia/ext/skia_utils_mac.h
@@ -108,8 +108,11 @@ SK_API NSImage* SkBitmapToNSImage(const SkBitmap& icon);
// Converts a SkCanvas temporarily to a CGContext
class SK_API SkiaBitLocker {
public:
+ // TODO(ccameron): delete this constructor
explicit SkiaBitLocker(SkCanvas* canvas);
- SkiaBitLocker(SkCanvas* canvas, const SkIRect& userClipRect);
+ SkiaBitLocker(SkCanvas* canvas,
+ const SkIRect& userClipRect,
+ SkScalar bitmapScaleFactor = 1);
~SkiaBitLocker();
CGContextRef cgContext();
bool hasEmptyClipRegion() const;
@@ -128,6 +131,7 @@ class SK_API SkiaBitLocker {
CGContextRef cgContext_;
SkBitmap bitmap_;
SkIPoint bitmapOffset_;
+ SkScalar bitmapScaleFactor_;
// True if we are drawing to |canvas_|'s SkBaseDevice's bits directly through
// |bitmap_|. Otherwise, the bits in |bitmap_| are our allocation and need to
« no previous file with comments | « no previous file | skia/ext/skia_utils_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698