diff options
author | hush@chromium.org <hush@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-31 09:09:33 +0000 |
---|---|---|
committer | hush@chromium.org <hush@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-31 09:09:33 +0000 |
commit | bd5324590122e686c34a66b1bbf7acbfc3fc73da (patch) | |
tree | 0f858d11bd9e26259206661e64be29be364e3caf /content/public | |
parent | 81314fe02b07b543a360ed442ef0085583bf4397 (diff) | |
download | chromium_src-bd5324590122e686c34a66b1bbf7acbfc3fc73da.zip chromium_src-bd5324590122e686c34a66b1bbf7acbfc3fc73da.tar.gz chromium_src-bd5324590122e686c34a66b1bbf7acbfc3fc73da.tar.bz2 |
Tiling priorities in Android Webview.
Use the parent compositor's clip and transform for tile
priorities in child compositor.
When the transform matrix changes in parent compositor
(hardware_renderer.cc), it posts the matrix and the clip to
the child compositor. (The parent clip is in screen space
and the parent matrix transforms from webview space to
screen space) Child compositor will use them for tile
prioritization.
In child compositor during updating tile priority, the clip
from parent is transformed from screen space to view space,
then from view space to content space. Then the result rect
will intersect with content_bounds() and the intersection
is used as tile priority input.
BUG=372073
Review URL: https://codereview.chromium.org/394113002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286731 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r-- | content/public/browser/android/synchronous_compositor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/public/browser/android/synchronous_compositor.h b/content/public/browser/android/synchronous_compositor.h index 62485f1..72c2b19 100644 --- a/content/public/browser/android/synchronous_compositor.h +++ b/content/public/browser/android/synchronous_compositor.h @@ -91,7 +91,9 @@ class CONTENT_EXPORT SynchronousCompositor { gfx::Size surface_size, const gfx::Transform& transform, gfx::Rect viewport, - gfx::Rect clip) = 0; + gfx::Rect clip, + gfx::Rect viewport_rect_for_tile_priority, + const gfx::Transform& transform_for_tile_priority) = 0; // For delegated rendering, return resources from parent compositor to this. // Note that all resources must be returned before ReleaseHwDraw. |