From 506446425b195a736d2ac80d0305684c55f8fb06 Mon Sep 17 00:00:00 2001 From: "boliu@chromium.org" Date: Thu, 20 Jun 2013 13:58:55 +0000 Subject: 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 --- cc/test/fake_output_surface.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cc/test/fake_output_surface.h') 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 CreateDeferredGL( - scoped_ptr context3d, scoped_ptr software_device) { scoped_ptr 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 context3d); + protected: FakeOutputSurface( scoped_ptr context3d, -- cgit v1.1