Index: Source/platform/graphics/GraphicsContextState.h |
diff --git a/Source/platform/graphics/GraphicsContextState.h b/Source/platform/graphics/GraphicsContextState.h |
index a3adc04d47920b59eb866c4de6867b990bc74e68..ee1c625da3c9d9862baad526443892fcdd6afa7a 100644 |
--- a/Source/platform/graphics/GraphicsContextState.h |
+++ b/Source/platform/graphics/GraphicsContextState.h |
@@ -46,18 +46,14 @@ |
// Encapsulates the state information we store for each pushed graphics state. |
// Only GraphicsContext can use this class. |
class PLATFORM_EXPORT GraphicsContextState FINAL { |
+ WTF_MAKE_NONCOPYABLE(GraphicsContextState); |
public: |
static PassOwnPtr<GraphicsContextState> create() |
{ |
return adoptPtr(new GraphicsContextState()); |
} |
- static PassOwnPtr<GraphicsContextState> createAndCopy(const GraphicsContextState& other) |
- { |
- return adoptPtr(new GraphicsContextState(other)); |
- } |
- |
- void copy(const GraphicsContextState&); |
+ void copy(GraphicsContextState*); |
// SkPaint objects that reflect the current state. If the length of the |
// path to be stroked is known, pass it in for correct dash or dot placement. |
@@ -146,8 +142,6 @@ |
private: |
GraphicsContextState(); |
- explicit GraphicsContextState(const GraphicsContextState&); |
- GraphicsContextState& operator=(const GraphicsContextState&); |
// Helper function for applying the state's alpha value to the given input |
// color to produce a new output color. |