diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 22:49:04 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 22:49:04 +0000 |
commit | c05dfbbb633b1955c57e0b5e12e8cd26801231c4 (patch) | |
tree | 87e5490353b1a69b901336081ceab73bffd9842d /cc/output/output_surface.cc | |
parent | 6a8ab1dceba32f021f112ce62c8ac80d70e658c3 (diff) | |
download | chromium_src-c05dfbbb633b1955c57e0b5e12e8cd26801231c4.zip chromium_src-c05dfbbb633b1955c57e0b5e12e8cd26801231c4.tar.gz chromium_src-c05dfbbb633b1955c57e0b5e12e8cd26801231c4.tar.bz2 |
Pass resourceless software mode in SetExternalConstraints
This fixes the bug that resourceless software mode not
dirtying the draw properties.
This allows OutputSurface::ForcedDrawToSoftwareDevice to be
removed. And merged the valid_for_tile_management parameter
into resourceless_software_draw. This effectively reverses
the last bool parameter on SetExternalDrawConstraints.
BUG=391829
Review URL: https://codereview.chromium.org/376683004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/output/output_surface.cc')
-rw-r--r-- | cc/output/output_surface.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc index 369a152..518ec78 100644 --- a/cc/output/output_surface.cc +++ b/cc/output/output_surface.cc @@ -91,12 +91,13 @@ void OutputSurface::SetExternalStencilTest(bool enabled) { external_stencil_test_enabled_ = enabled; } -void OutputSurface::SetExternalDrawConstraints(const gfx::Transform& transform, - const gfx::Rect& viewport, - const gfx::Rect& clip, - bool valid_for_tile_management) { +void OutputSurface::SetExternalDrawConstraints( + const gfx::Transform& transform, + const gfx::Rect& viewport, + const gfx::Rect& clip, + bool resourceless_software_draw) { client_->SetExternalDrawConstraints( - transform, viewport, clip, valid_for_tile_management); + transform, viewport, clip, resourceless_software_draw); } OutputSurface::~OutputSurface() { @@ -107,8 +108,6 @@ bool OutputSurface::HasExternalStencilTest() const { return external_stencil_test_enabled_; } -bool OutputSurface::ForcedDrawToSoftwareDevice() const { return false; } - bool OutputSurface::BindToClient(OutputSurfaceClient* client) { DCHECK(client); client_ = client; |