diff options
Diffstat (limited to 'Source/WebCore/platform/graphics')
-rw-r--r-- | Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.cpp | 20 | ||||
-rw-r--r-- | Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h | 13 |
2 files changed, 1 insertions, 32 deletions
diff --git a/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.cpp b/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.cpp index 829be2e..295c106 100644 --- a/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.cpp +++ b/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.cpp @@ -25,12 +25,8 @@ GraphicsOperationCollection::~GraphicsOperationCollection() void GraphicsOperationCollection::apply(PlatformGraphicsContext* context) { - ALOGD("\nApply GraphicsOperationCollection %x, %d operations", this, m_operations.size()); - for (unsigned int i = 0; i < m_operations.size(); i++) { - ALOGD("[%d] (%x) %s %s", i, this, m_operations[i]->name().ascii().data(), - m_operations[i]->parameters().ascii().data()); + for (unsigned int i = 0; i < m_operations.size(); i++) m_operations[i]->apply(context); - } } void GraphicsOperationCollection::append(GraphicsOperation::Operation* operation) @@ -43,20 +39,6 @@ bool GraphicsOperationCollection::isEmpty() return !m_operations.size(); } -AutoGraphicsOperationCollection::AutoGraphicsOperationCollection() -{ - m_graphicsOperationCollection = new GraphicsOperationCollection(); - m_platformGraphicsContext = new PlatformGraphicsContextRecording(m_graphicsOperationCollection); - m_graphicsContext = new GraphicsContext(m_platformGraphicsContext); -} - -AutoGraphicsOperationCollection::~AutoGraphicsOperationCollection() -{ - SkSafeUnref(m_graphicsOperationCollection); - delete m_graphicsContext; - delete m_platformGraphicsContext; -} - } // namespace WebCore #endif // USE(ACCELERATED_COMPOSITING) diff --git a/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h b/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h index d3fc16b..a8696fe 100644 --- a/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h +++ b/Source/WebCore/platform/graphics/android/context/GraphicsOperationCollection.h @@ -51,19 +51,6 @@ private: Vector<GraphicsOperation::Operation*> m_operations; }; -class AutoGraphicsOperationCollection { -public: - AutoGraphicsOperationCollection(); - ~AutoGraphicsOperationCollection(); - GraphicsContext* context() { return m_graphicsContext; } - GraphicsOperationCollection* picture() { return m_graphicsOperationCollection; } - -private: - GraphicsOperationCollection* m_graphicsOperationCollection; - PlatformGraphicsContext* m_platformGraphicsContext; - GraphicsContext* m_graphicsContext; -}; - } #endif // USE(ACCELERATED_COMPOSITING) |