diff options
author | Nicolas Roard <nicolasroard@google.com> | 2011-10-20 15:55:34 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2011-10-20 16:47:41 -0700 |
commit | f65ed48034d37597dc4b191a79781ae49d2cfc99 (patch) | |
tree | 6fac77320f6317983598e52033a59c30625e2829 /Source/WebCore/platform/graphics/android/GLWebViewState.h | |
parent | 8cc0fa17a42ae1dec75fe8ab00d5baa75e46499e (diff) | |
download | external_webkit-f65ed48034d37597dc4b191a79781ae49d2cfc99.zip external_webkit-f65ed48034d37597dc4b191a79781ae49d2cfc99.tar.gz external_webkit-f65ed48034d37597dc4b191a79781ae49d2cfc99.tar.bz2 |
Implement dual textures for layers to handle zooming correctly.
We add a new class, DualTiledTexture, that encapsulate two TiledTextures
and manage them according to the current scale factor.
bug:5492874
Change-Id: I4ba3ff539f9242ae5102189e9623e1535e9cc28f
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLWebViewState.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.h b/Source/WebCore/platform/graphics/android/GLWebViewState.h index 23d7de2..0bc1209 100644 --- a/Source/WebCore/platform/graphics/android/GLWebViewState.h +++ b/Source/WebCore/platform/graphics/android/GLWebViewState.h @@ -231,6 +231,8 @@ public: int expandedTileBoundsX() { return m_expandedTileBoundsX; } int expandedTileBoundsY() { return m_expandedTileBoundsY; } + float scale() { return m_scale; } + private: void inval(const IntRect& rect); // caller must hold m_baseLayerLock void invalRegion(const SkRegion& region); @@ -274,6 +276,8 @@ private: int m_expandedTileBoundsX; int m_expandedTileBoundsY; + + float m_scale; }; } // namespace WebCore |