summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-07-12 19:45:44 -0700
committerJohn Reck <jreck@google.com>2012-07-13 11:17:44 -0700
commit8ad43ea5cc2ec08eaf11619f6c543e14bb5e1506 (patch)
tree434696d55472a0c2d91d3da7b1211a105278defb /Source/WebCore/platform/graphics/android/context/GraphicsOperation.h
parent51d890c9af6c8f35ddcdf8176b4598d4744a67af (diff)
downloadexternal_webkit-8ad43ea5cc2ec08eaf11619f6c543e14bb5e1506.zip
external_webkit-8ad43ea5cc2ec08eaf11619f6c543e14bb5e1506.tar.gz
external_webkit-8ad43ea5cc2ec08eaf11619f6c543e14bb5e1506.tar.bz2
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
Diffstat (limited to 'Source/WebCore/platform/graphics/android/context/GraphicsOperation.h')
-rw-r--r--Source/WebCore/platform/graphics/android/context/GraphicsOperation.h5
1 files changed, 5 insertions, 0 deletions
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);