From 8ad43ea5cc2ec08eaf11619f6c543e14bb5e1506 Mon Sep 17 00:00:00 2001 From: John Reck Date: Thu, 12 Jul 2012 19:45:44 -0700 Subject: Handle Matrixes Make sure to take into account the current matrix to calculate the right global bounds Tag operations with the matrix that affected their drawing Change-Id: Iadda9f3849dc3df1507e63423ff8d3ad0f37d74e --- Source/WebCore/platform/graphics/android/context/GraphicsOperation.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/WebCore/platform/graphics/android/context/GraphicsOperation.h') diff --git a/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h b/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h index 3f39b38..9ecf5c5 100644 --- a/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h +++ b/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h @@ -102,9 +102,14 @@ public: Operation() : m_state(0) + , m_matrix(0) {} + // This m_state is applied by ourselves PlatformGraphicsContext::State* m_state; + // This m_matrix is applied by Recording::draw + SkMatrix* m_matrix; + bool apply(PlatformGraphicsContext* context) { if (m_state) context->setRawState(m_state); -- cgit v1.1