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

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

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 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
Index: third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.h
diff --git a/third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.h b/third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.h
index 37616ec3996ddba6812fb3183816cef1563865e6..1a92c9f87dc074b2e4e5a17b99a3b1fb47bbe353 100644
--- a/third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.h
+++ b/third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.h
@@ -35,9 +35,9 @@ class GraphicsContext;
class PLATFORM_EXPORT LocalCurrentGraphicsContext {
WTF_MAKE_NONCOPYABLE(LocalCurrentGraphicsContext);
public:
- LocalCurrentGraphicsContext(GraphicsContext*, const IntRect& dirtyRect);
+ LocalCurrentGraphicsContext(GraphicsContext&, const IntRect& dirtyRect);
// Allows specifying an interest rect to which we clip if slimming paint is enabled and performance would benefit.
- LocalCurrentGraphicsContext(GraphicsContext*, const IntRect* interestRect, const IntRect& dirtyRect);
+ LocalCurrentGraphicsContext(GraphicsContext&, const IntRect* interestRect, const IntRect& dirtyRect);
LocalCurrentGraphicsContext(SkCanvas*, float deviceScaleFactor, const IntRect* interestRect, const IntRect& dirtyRect);
~LocalCurrentGraphicsContext();
CGContextRef cgContext();

Powered by Google App Engine
This is Rietveld 408576698