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

Unified Diff: skia/ext/skia_utils_mac.mm

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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 | « skia/ext/skia_utils_mac.h ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_mac.mm
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm
index 57fb7076ba219c4b5ccefb292200c69b5d644638..65470bd79ff4e1ee73f42266f37c2aac4f468655 100644
--- a/skia/ext/skia_utils_mac.mm
+++ b/skia/ext/skia_utils_mac.mm
@@ -190,7 +190,7 @@ SkBitmap CGImageToSkBitmap(CGImageRef image) {
int width = CGImageGetWidth(image);
int height = CGImageGetHeight(image);
- std::unique_ptr<SkCanvas> canvas(skia::CreatePlatformCanvas(
+ std::unique_ptr<CdlCanvas> canvas(skia::CreatePlatformCanvas(
nullptr, width, height, false, RETURN_NULL_ON_FAILURE));
ScopedPlatformPaint p(canvas.get());
CGContextRef context = p.GetNativeDrawingContext();
@@ -262,7 +262,7 @@ NSImage* SkBitmapToNSImage(const SkBitmap& skiaBitmap) {
return SkBitmapToNSImageWithColorSpace(skiaBitmap, colorSpace.get());
}
-SkiaBitLocker::SkiaBitLocker(SkCanvas* canvas,
+SkiaBitLocker::SkiaBitLocker(CdlCanvas* canvas,
const SkIRect& userClipRect,
SkScalar bitmapScaleFactor)
: canvas_(canvas),
@@ -328,7 +328,8 @@ CGContextRef SkiaBitLocker::cgContext() {
// Now make clip_bounds be relative to the current layer/device
if (!bitmapIsDummy_) {
- canvas_->temporary_internal_describeTopLayer(nullptr, &clip_bounds);
+ GetSkCanvas(canvas_)->temporary_internal_describeTopLayer(nullptr,
+ &clip_bounds);
}
SkPixmap devicePixels;
« no previous file with comments | « skia/ext/skia_utils_mac.h ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698