diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.h b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.h index 82f9446..1cce5a6 100644 --- a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.h +++ b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.h @@ -28,8 +28,12 @@ #include "PlatformGraphicsContext.h" +#include "GraphicsOperationCollection.h" + namespace WebCore { -class GraphicsOperationCollection; +namespace GraphicsOperation { +class Operation; +} class PlatformGraphicsContextRecording : public PlatformGraphicsContext { public: @@ -38,9 +42,6 @@ public: virtual bool isPaintingDisabled(); virtual SkCanvas* getCanvas() { return 0; } - GraphicsOperationCollection* mGraphicsOperationCollection; - SkMatrix mCurrentMatrix; - virtual SkCanvas* recordingCanvas(); virtual void endRecording(int type = 0); @@ -121,7 +122,15 @@ private: return false; } + void appendDrawingOperation(GraphicsOperation::Operation* operation); + void appendStateOperation(GraphicsOperation::Operation* operation); + void flushPendingOperations(); + SkPicture* mPicture; + SkMatrix mCurrentMatrix; + + GraphicsOperationCollection* mGraphicsOperationCollection; + GraphicsOperationCollection mPendingOperations; }; } |