diff options
author | John Reck <jreck@google.com> | 2012-07-03 14:22:20 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-07-03 14:54:03 -0700 |
commit | 1fcb8aa079de156851042d8e041254b7abeecc77 (patch) | |
tree | 3f54ed48f7ac97a196f17a2c400ddae023f446bf /Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h | |
parent | cd037d9094659dcb6f998997d7f32e99fc6b7697 (diff) | |
download | external_webkit-1fcb8aa079de156851042d8e041254b7abeecc77.zip external_webkit-1fcb8aa079de156851042d8e041254b7abeecc77.tar.gz external_webkit-1fcb8aa079de156851042d8e041254b7abeecc77.tar.bz2 |
Refactor RecordingContext optimization work
Makes more sense to have PlatformGraphicsContextRecording
do the optimizations as it already has all of the interesting data
rather than have GraphicsOperationCollection "deep inspect" the
stream
Change-Id: I0dba6531a352d178afbee2c5eea7d67b82c28df5
Diffstat (limited to 'Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h b/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h index e7e4ccc..713d06e 100644 --- a/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h +++ b/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h @@ -28,9 +28,7 @@ #if USE(ACCELERATED_COMPOSITING) -#include "Color.h" #include "GraphicsOperation.h" -#include "IntRect.h" #include "SkRefCnt.h" namespace WebCore { @@ -42,16 +40,18 @@ public: GraphicsOperationCollection(); ~GraphicsOperationCollection(); - void apply(PlatformGraphicsContext* context); + void apply(PlatformGraphicsContext* context) const; void adoptAndAppend(GraphicsOperation::Operation* operation); + // Moves all the operations from moveFrom into this collection + // moveFrom will be empty after this call + void transferFrom(GraphicsOperationCollection& moveFrom); + bool isEmpty(); + void clear(); private: - void flush(); - - Vector< RefPtr<GraphicsOperation::Operation> > m_pendingOperations; - Vector< RefPtr<GraphicsOperation::Operation> > m_operations; + Vector<GraphicsOperation::Operation*> m_operations; }; } |