summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_proxy.cc
diff options
context:
space:
mode:
authornick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 18:46:22 +0000
committernick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 18:46:22 +0000
commit486544b4fc5208989d1d5fbc1517e2e2f15b2df8 (patch)
treedec4b0ca9347a4ce36ae29618e0a99d2601a8cf7 /cc/test/fake_proxy.cc
parentcccbd0f6e9ea74fe6c7aa4e9cf8127a23fab4179 (diff)
downloadchromium_src-486544b4fc5208989d1d5fbc1517e2e2f15b2df8.zip
chromium_src-486544b4fc5208989d1d5fbc1517e2e2f15b2df8.tar.gz
chromium_src-486544b4fc5208989d1d5fbc1517e2e2f15b2df8.tar.bz2
Revert 196708 "Merge cc initialization paths"
[Reason for revert: WebGLInfobarTest.ContextLossInfobarReload was failing on the Linux Tests bot with high probability] > 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 TBR=boliu@chromium.org Review URL: https://codereview.chromium.org/14386008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_proxy.cc')
-rw-r--r--cc/test/fake_proxy.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/cc/test/fake_proxy.cc b/cc/test/fake_proxy.cc
index 9a3fc9d..0ec3ab2 100644
--- a/cc/test/fake_proxy.cc
+++ b/cc/test/fake_proxy.cc
@@ -6,20 +6,17 @@
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; }
-void FakeProxy::CreateAndInitializeOutputSurface() {
- DCHECK(layer_tree_host_);
- layer_tree_host_->OnCreateAndInitializeOutputSurfaceAttempted(true);
-}
+bool FakeProxy::InitializeOutputSurface() { return true; }
+
+bool FakeProxy::InitializeRenderer() { return true; }
+
+bool FakeProxy::RecreateOutputSurface() { return true; }
const RendererCapabilities& FakeProxy::GetRendererCapabilities() const {
return capabilities_;