diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 17:53:30 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 17:53:30 +0000 |
commit | 59fee305b4eb62b3f6b710e4d5e19487fff7993d (patch) | |
tree | f1791f2f9c8749469525217fb93fb5cb69c017cf /cc/test/pixel_test_output_surface.cc | |
parent | 8e62c624a2ca76440e29c3fe929120f534ea1f8a (diff) | |
download | chromium_src-59fee305b4eb62b3f6b710e4d5e19487fff7993d.zip chromium_src-59fee305b4eb62b3f6b710e4d5e19487fff7993d.tar.gz chromium_src-59fee305b4eb62b3f6b710e4d5e19487fff7993d.tar.bz2 |
cc: Remove DeviceViewport and DeviceClip from the RendererClient
Now the client only contains a method that is needed to be run on
LayerTreeHostImpl, no getters exist. Instead all values are pushed
into the renderer.
Some cleanups in GLRenderer unittests and the pixel tests has resulted.
Since gl_renderer_unittest file changed so dramatically anyway, I did a
clang-format on the whole file.
R=aelias@chromium.org, enne@chromium.org, enne
BUG=
Review URL: https://codereview.chromium.org/108653003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239802 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/pixel_test_output_surface.cc')
-rw-r--r-- | cc/test/pixel_test_output_surface.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cc/test/pixel_test_output_surface.cc b/cc/test/pixel_test_output_surface.cc index 8306cc8..1ea89e2 100644 --- a/cc/test/pixel_test_output_surface.cc +++ b/cc/test/pixel_test_output_surface.cc @@ -21,13 +21,6 @@ void PixelTestOutputSurface::Reshape(gfx::Size size, float scale_factor) { gfx::Size expanded_size(size.width() + surface_expansion_size_.width(), size.height() + surface_expansion_size_.height()); OutputSurface::Reshape(expanded_size, scale_factor); - - gfx::Rect offset_viewport = gfx::Rect(size) + viewport_offset_; - gfx::Rect offset_clip = device_clip_.IsEmpty() - ? offset_viewport - : device_clip_ + viewport_offset_; - SetExternalDrawConstraints( - gfx::Transform(), offset_viewport, offset_clip, true); } bool PixelTestOutputSurface::HasExternalStencilTest() const { |