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

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

Issue 1170523002: Removing GraphicsContext from ImageBuffer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for shape bug Created 5 years, 6 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
Index: Source/platform/mac/LocalCurrentGraphicsContext.h
diff --git a/Source/platform/mac/LocalCurrentGraphicsContext.h b/Source/platform/mac/LocalCurrentGraphicsContext.h
index cc45fdeec4dbc73957dff28d01359c01a88bc528..37616ec3996ddba6812fb3183816cef1563865e6 100644
--- a/Source/platform/mac/LocalCurrentGraphicsContext.h
+++ b/Source/platform/mac/LocalCurrentGraphicsContext.h
@@ -24,6 +24,8 @@
OBJC_CLASS NSGraphicsContext;
+class SkCanvas;
+
namespace blink {
class GraphicsContext;
@@ -36,11 +38,12 @@ public:
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(SkCanvas*, float deviceScaleFactor, const IntRect* interestRect, const IntRect& dirtyRect);
~LocalCurrentGraphicsContext();
CGContextRef cgContext();
private:
- GraphicsContext* m_savedGraphicsContext;
+ SkCanvas* m_savedCanvas;
NSGraphicsContext* m_savedNSGraphicsContext;
bool m_didSetGraphicsContext;
IntRect m_inflatedDirtyRect;
« no previous file with comments | « Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp ('k') | Source/platform/mac/LocalCurrentGraphicsContext.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698