diff options
author | aelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-06 23:23:32 +0000 |
---|---|---|
committer | aelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-06 23:23:32 +0000 |
commit | f224cc9a660a41bf5115fb2db7564cd0c87d68b5 (patch) | |
tree | 367cecabdd2f47685b214c92833567a44140ba99 /cc/test/fake_output_surface.h | |
parent | 2ed80f0145fc03eb7eac6333b11eb27645bb37ea (diff) | |
download | chromium_src-f224cc9a660a41bf5115fb2db7564cd0c87d68b5.zip chromium_src-f224cc9a660a41bf5115fb2db7564cd0c87d68b5.tar.gz chromium_src-f224cc9a660a41bf5115fb2db7564cd0c87d68b5.tar.bz2 |
Implement transform/clip support for Android WebView.
Transforms are applied above the root-layer. I fixed LTHCommon to forward
root-layer transforms to sublayers, as the RenderSurface-based logic was previously
clearing transforms and copying over only the scale portion.
The clip rect is treated as the viewport for the purposes of DrawQuads and Renderer
(this is required to avoid awful performance when the WebView is much larger than
the screen). Because y-flipping the clip rect depends on knowledge of the true
surface size, I also needed to add a new OutputSurface::SurfaceSize() getter and refactored
viewport size throughout the Renderers to separate render-pass draw rect, glViewport rect,
and surface size.
Scale and translate transforms work with this patch, but rotation is still broken.
New tests: LayerTreeHostCommonTest.TransformAboveRootLayer,
GLRendererTest2.ScissorAndViewportWithinNonreshapableSurface,
RendererPixelTest/2* and 3*
NOTRY=true
BUG=230463
Review URL: https://chromiumcodereview.appspot.com/15579002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_output_surface.h')
-rw-r--r-- | cc/test/fake_output_surface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h index 090571f..6eff484 100644 --- a/cc/test/fake_output_surface.h +++ b/cc/test/fake_output_surface.h @@ -81,7 +81,7 @@ class FakeOutputSurface : public OutputSurface { } virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE; - private: + protected: FakeOutputSurface( scoped_ptr<WebKit::WebGraphicsContext3D> context3d, bool has_parent); |