diff options
author | John Reck <jreck@google.com> | 2012-07-12 19:45:44 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-07-13 11:17:44 -0700 |
commit | 8ad43ea5cc2ec08eaf11619f6c543e14bb5e1506 (patch) | |
tree | 434696d55472a0c2d91d3da7b1211a105278defb /Source/WebCore/platform/graphics/android/context/GraphicsOperation.h | |
parent | 51d890c9af6c8f35ddcdf8176b4598d4744a67af (diff) | |
download | external_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.h | 5 |
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); |