summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/GLUtils.h
diff options
context:
space:
mode:
authorMangesh Ghiware <mghiware@google.com>2012-05-07 13:58:13 -0700
committerMangesh Ghiware <mghiware@google.com>2012-05-08 13:21:31 -0700
commit418e065ccd82593c3f5d49942b0aaee6fac95615 (patch)
tree6eaf682548a8c4976970bbd4bf4d90a7bc28e423 /Source/WebCore/platform/graphics/android/rendering/GLUtils.h
parente19b4847176a5d05309947d1f57f57e5d63c7e61 (diff)
downloadexternal_webkit-418e065ccd82593c3f5d49942b0aaee6fac95615.zip
external_webkit-418e065ccd82593c3f5d49942b0aaee6fac95615.tar.gz
external_webkit-418e065ccd82593c3f5d49942b0aaee6fac95615.tar.bz2
Fix visible area calculation.
Use the inverse of draw tranform to convert from content to layers coordinate space. Also, if the draw transform isn't limited to 2D space, return the entire content area. Above conversion doesn't preserve 3D. Bug: 6077575 Change-Id: I8393de0597ae5cd739b3df10c087cedd234ac9f0
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/GLUtils.h')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/GLUtils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/GLUtils.h b/Source/WebCore/platform/graphics/android/rendering/GLUtils.h
index 1b69d6c..c2dec7d 100644
--- a/Source/WebCore/platform/graphics/android/rendering/GLUtils.h
+++ b/Source/WebCore/platform/graphics/android/rendering/GLUtils.h
@@ -56,6 +56,7 @@ public:
static void toSkMatrix(SkMatrix& skmatrix, const TransformationMatrix& matrix);
static void setOrthographicMatrix(TransformationMatrix& ortho, float left, float top,
float right, float bottom, float nearZ, float farZ);
+ static bool has3dTransform(const TransformationMatrix& matrix);
// GL & EGL error checks
static void checkEglError(const char* op, EGLBoolean returnVal = EGL_TRUE);