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

Side by Side Diff: cc/test/fake_output_surface.h

Issue 50303007: Move test-only stuff from cc/debug/ to cc/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fold cc_test_utils into cc_test_support to fix windows link Created 7 years, 1 month 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.cc ('k') | cc/test/fake_web_graphics_context_3d.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 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "cc/debug/test_context_provider.h"
12 #include "cc/debug/test_web_graphics_context_3d.h"
13 #include "cc/output/begin_frame_args.h" 11 #include "cc/output/begin_frame_args.h"
14 #include "cc/output/compositor_frame.h" 12 #include "cc/output/compositor_frame.h"
15 #include "cc/output/managed_memory_policy.h" 13 #include "cc/output/managed_memory_policy.h"
16 #include "cc/output/output_surface.h" 14 #include "cc/output/output_surface.h"
17 #include "cc/output/software_output_device.h" 15 #include "cc/output/software_output_device.h"
16 #include "cc/test/test_context_provider.h"
17 #include "cc/test/test_web_graphics_context_3d.h"
18 18
19 namespace cc { 19 namespace cc {
20 20
21 class FakeOutputSurface : public OutputSurface { 21 class FakeOutputSurface : public OutputSurface {
22 public: 22 public:
23 virtual ~FakeOutputSurface(); 23 virtual ~FakeOutputSurface();
24 24
25 static scoped_ptr<FakeOutputSurface> Create3d() { 25 static scoped_ptr<FakeOutputSurface> Create3d() {
26 return make_scoped_ptr(new FakeOutputSurface( 26 return make_scoped_ptr(new FakeOutputSurface(
27 TestContextProvider::Create(), false)); 27 TestContextProvider::Create(), false));
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 scoped_ptr<cc::ManagedMemoryPolicy> memory_policy_to_set_at_bind_; 153 scoped_ptr<cc::ManagedMemoryPolicy> memory_policy_to_set_at_bind_;
154 }; 154 };
155 155
156 static inline scoped_ptr<OutputSurface> CreateFakeOutputSurface() { 156 static inline scoped_ptr<OutputSurface> CreateFakeOutputSurface() {
157 return FakeOutputSurface::Create3d().PassAs<OutputSurface>(); 157 return FakeOutputSurface::Create3d().PassAs<OutputSurface>();
158 } 158 }
159 159
160 } // namespace cc 160 } // namespace cc
161 161
162 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 162 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_client.cc ('k') | cc/test/fake_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698