summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_proxy.cc
diff options
context:
space:
mode:
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 12:34:56 +0000
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 12:34:56 +0000
commit9f0646c3d1b0564f4a71a6ed2fd97418c54a7a31 (patch)
tree7e19390e760e868c43608a83312725fe0bd5870b /cc/test/fake_proxy.cc
parent72f8c44e8651f11b0e043dc07f09fbbba762cc0c (diff)
downloadchromium_src-9f0646c3d1b0564f4a71a6ed2fd97418c54a7a31.zip
chromium_src-9f0646c3d1b0564f4a71a6ed2fd97418c54a7a31.tar.gz
chromium_src-9f0646c3d1b0564f4a71a6ed2fd97418c54a7a31.tar.bz2
Merge cc initialization paths
Code path between first initialization and recreate on context lost are merged. Do this by changing the first initialization behavior to match recreate. Now both are kicked off by the scheduler and blocks the main thread on the impl thread. The scheduler is started in output surface lost state and immediately schedules recreation. This means the first initialization is no longer synchronous. BUG=233664, 230197 First commited in r196480. Reverted in r196509 due to exposing WebGLInfobarTest that should never have passed on asan. Disable them on asan: https://codereview.chromium.org/14499007/ Review URL: https://chromiumcodereview.appspot.com/12544032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196708 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_proxy.cc')
-rw-r--r--cc/test/fake_proxy.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/cc/test/fake_proxy.cc b/cc/test/fake_proxy.cc
index 0ec3ab2..9a3fc9d 100644
--- a/cc/test/fake_proxy.cc
+++ b/cc/test/fake_proxy.cc
@@ -6,17 +6,20 @@
namespace cc {
+void FakeProxy::SetLayerTreeHost(LayerTreeHost* host) {
+ layer_tree_host_ = host;
+}
+
bool FakeProxy::CompositeAndReadback(void* pixels, gfx::Rect rect) {
return true;
}
bool FakeProxy::IsStarted() const { return true; }
-bool FakeProxy::InitializeOutputSurface() { return true; }
-
-bool FakeProxy::InitializeRenderer() { return true; }
-
-bool FakeProxy::RecreateOutputSurface() { return true; }
+void FakeProxy::CreateAndInitializeOutputSurface() {
+ DCHECK(layer_tree_host_);
+ layer_tree_host_->OnCreateAndInitializeOutputSurfaceAttempted(true);
+}
const RendererCapabilities& FakeProxy::GetRendererCapabilities() const {
return capabilities_;