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

Unified Diff: Source/core/platform/graphics/GraphicsContext.h

Issue 14550002: Making GraphicsContext the owner of PlatformContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixing tests and addressing comments. Created 7 years, 8 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/core/platform/graphics/GraphicsContext.h
diff --git a/Source/core/platform/graphics/GraphicsContext.h b/Source/core/platform/graphics/GraphicsContext.h
index 892fdcf045196673a02e6be1fdaa9c8794168072..59b6960ffd29914662f782711d4a3f614853ecb1 100644
--- a/Source/core/platform/graphics/GraphicsContext.h
+++ b/Source/core/platform/graphics/GraphicsContext.h
@@ -50,7 +50,6 @@
namespace WebCore {
class PlatformContextSkia;
-typedef PlatformContextSkia GraphicsContextPlatformPrivate;
}
typedef WebCore::PlatformContextSkia PlatformGraphicsContext;
@@ -155,7 +154,7 @@ namespace WebCore {
class GraphicsContext {
WTF_MAKE_NONCOPYABLE(GraphicsContext); WTF_MAKE_FAST_ALLOCATED;
public:
- GraphicsContext(PlatformGraphicsContext*);
+ explicit GraphicsContext(SkCanvas*);
~GraphicsContext();
PlatformGraphicsContext* platformContext() const;
@@ -388,7 +387,7 @@ namespace WebCore {
return value;
}
- GraphicsContextPlatformPrivate* m_data;
+ OwnPtr<PlatformContextSkia> m_data;
GraphicsContextState m_state;
Vector<GraphicsContextState> m_stack;

Powered by Google App Engine
This is Rietveld 408576698