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

Unified Diff: third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.mm

Issue 2705723002: Convert SkiaBitLocker to use PaintCanvas (Closed)
Patch Set: Remove rogue cc:: Created 3 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 | « third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.mm
diff --git a/third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.mm b/third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.mm
index 39925f7a5ce78f6992cd8ccc41abecc3fa968e3a..1677c437499801822cb2557ec16bc7a59785baef 100644
--- a/third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.mm
+++ b/third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.mm
@@ -49,7 +49,7 @@ LocalCurrentGraphicsContext::LocalCurrentGraphicsContext(
const IntRect& dirtyRect)
: m_didSetGraphicsContext(false),
m_inflatedDirtyRect(ThemeMac::inflateRectForAA(dirtyRect)),
- m_skiaBitLocker(canvas, m_inflatedDirtyRect, deviceScaleFactor) {
+ m_graphicsContextCanvas(canvas, m_inflatedDirtyRect, deviceScaleFactor) {
m_savedCanvas = canvas;
canvas->save();
@@ -87,7 +87,7 @@ LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext() {
CGContextRef LocalCurrentGraphicsContext::cgContext() {
// This synchronizes the CGContext to reflect the current SkCanvas state.
// The implementation may not return the same CGContext each time.
- CGContextRef cgContext = m_skiaBitLocker.cgContext();
+ CGContextRef cgContext = m_graphicsContextCanvas.cgContext();
return cgContext;
}
« no previous file with comments | « third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698