Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: cc/test/fake_layer_tree_host_client.cc

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_output_surface_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/test/fake_layer_tree_host_client.h" 5 #include "cc/test/fake_layer_tree_host_client.h"
6 6
7 #include "cc/output/context_provider.h" 7 #include "cc/output/context_provider.h"
8 #include "cc/test/fake_output_surface.h" 8 #include "cc/test/fake_output_surface.h"
9 #include "cc/test/test_web_graphics_context_3d.h" 9 #include "cc/test/test_web_graphics_context_3d.h"
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 return FakeOutputSurface::CreateSoftware( 29 return FakeOutputSurface::CreateSoftware(
30 make_scoped_ptr(new SoftwareOutputDevice)).PassAs<OutputSurface>(); 30 make_scoped_ptr(new SoftwareOutputDevice)).PassAs<OutputSurface>();
31 } 31 }
32 32
33 if (use_delegating_renderer_) 33 if (use_delegating_renderer_)
34 return FakeOutputSurface::CreateDelegating3d().PassAs<OutputSurface>(); 34 return FakeOutputSurface::CreateDelegating3d().PassAs<OutputSurface>();
35 return FakeOutputSurface::Create3d().PassAs<OutputSurface>(); 35 return FakeOutputSurface::Create3d().PassAs<OutputSurface>();
36 } 36 }
37 37
38 scoped_refptr<ContextProvider>
39 FakeLayerTreeHostClient::OffscreenContextProvider() {
40 if (!offscreen_contexts_.get() ||
41 offscreen_contexts_->DestroyedOnMainThread())
42 offscreen_contexts_ = TestContextProvider::Create();
43 return offscreen_contexts_;
44 }
45
46 } // namespace cc 38 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698