diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 13:58:55 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 13:58:55 +0000 |
commit | 506446425b195a736d2ac80d0305684c55f8fb06 (patch) | |
tree | cf1c3b59855f38dea75d636b67ec68b93f8223b0 /cc/test/fake_output_surface.h | |
parent | 83ad516352d55394a94d039f3d48e37920b490c3 (diff) | |
download | chromium_src-506446425b195a736d2ac80d0305684c55f8fb06.zip chromium_src-506446425b195a736d2ac80d0305684c55f8fb06.tar.gz chromium_src-506446425b195a736d2ac80d0305684c55f8fb06.tar.bz2 |
Zero-budget TileManager in resourceless software mode
In ResourceManager, add Reinitialize which essentially
calls Initialize again. Make sure the default resource
type is updated again to be correct.
In LayerTreeHostImpl, set bytes_limit_when_visible_ to 0
in resourceless software mode. Set back default value in
DeferredInitialize.
In TextureLayerImpl, release the resource on
DidLoseOutputSurface if not using mailboxes. For
mailboxes, the resource cannot be recreated by simply
calling CreateResourceFromTextureMailbox again.
BUG=245935
Review URL: https://chromiumcodereview.appspot.com/16700003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_output_surface.h')
-rw-r--r-- | cc/test/fake_output_surface.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h index b14deff..13b12ea 100644 --- a/cc/test/fake_output_surface.h +++ b/cc/test/fake_output_surface.h @@ -58,10 +58,9 @@ class FakeOutputSurface : public OutputSurface { } static scoped_ptr<FakeOutputSurface> CreateDeferredGL( - scoped_ptr<WebKit::WebGraphicsContext3D> context3d, scoped_ptr<SoftwareOutputDevice> software_device) { scoped_ptr<FakeOutputSurface> result( - new FakeOutputSurface(context3d.Pass(), software_device.Pass(), false)); + new FakeOutputSurface(software_device.Pass(), false)); result->capabilities_.deferred_gl_initialization = true; return result.Pass(); } @@ -81,6 +80,9 @@ class FakeOutputSurface : public OutputSurface { } virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE; + bool SetAndInitializeContext3D( + scoped_ptr<WebKit::WebGraphicsContext3D> context3d); + protected: FakeOutputSurface( scoped_ptr<WebKit::WebGraphicsContext3D> context3d, |