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

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

Issue 1230203007: Re-land: cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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
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"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 false)); 53 false));
54 } 54 }
55 55
56 static scoped_ptr<FakeOutputSurface> CreateDelegating3d() { 56 static scoped_ptr<FakeOutputSurface> CreateDelegating3d() {
57 return make_scoped_ptr(new FakeOutputSurface( 57 return make_scoped_ptr(new FakeOutputSurface(
58 TestContextProvider::Create(), TestContextProvider::Create(), true)); 58 TestContextProvider::Create(), TestContextProvider::Create(), true));
59 } 59 }
60 60
61 static scoped_ptr<FakeOutputSurface> CreateDelegating3d( 61 static scoped_ptr<FakeOutputSurface> CreateDelegating3d(
62 scoped_refptr<TestContextProvider> context_provider) { 62 scoped_refptr<TestContextProvider> context_provider) {
63 return make_scoped_ptr(new FakeOutputSurface(context_provider, true)); 63 return make_scoped_ptr(new FakeOutputSurface(
64 context_provider, TestContextProvider::Create(), true));
64 } 65 }
65 66
66 static scoped_ptr<FakeOutputSurface> CreateDelegating3d( 67 static scoped_ptr<FakeOutputSurface> CreateDelegating3d(
67 scoped_ptr<TestWebGraphicsContext3D> context) { 68 scoped_ptr<TestWebGraphicsContext3D> context) {
68 return make_scoped_ptr(new FakeOutputSurface( 69 return make_scoped_ptr(
69 TestContextProvider::Create(context.Pass()), true)); 70 new FakeOutputSurface(TestContextProvider::Create(context.Pass()),
71 TestContextProvider::Create(), true));
70 } 72 }
71 73
72 static scoped_ptr<FakeOutputSurface> CreateDelegatingSoftware( 74 static scoped_ptr<FakeOutputSurface> CreateDelegatingSoftware(
73 scoped_ptr<SoftwareOutputDevice> software_device) { 75 scoped_ptr<SoftwareOutputDevice> software_device) {
74 return make_scoped_ptr( 76 return make_scoped_ptr(
75 new FakeOutputSurface(software_device.Pass(), true)); 77 new FakeOutputSurface(software_device.Pass(), true));
76 } 78 }
77 79
78 static scoped_ptr<FakeOutputSurface> CreateAlwaysDrawAndSwap3d() { 80 static scoped_ptr<FakeOutputSurface> CreateAlwaysDrawAndSwap3d() {
79 scoped_ptr<FakeOutputSurface> surface(Create3d()); 81 scoped_ptr<FakeOutputSurface> surface(Create3d());
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 bool suspended_for_recycle_; 160 bool suspended_for_recycle_;
159 unsigned framebuffer_; 161 unsigned framebuffer_;
160 TransferableResourceArray resources_held_by_parent_; 162 TransferableResourceArray resources_held_by_parent_;
161 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; 163 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_;
162 gfx::Rect last_swap_rect_; 164 gfx::Rect last_swap_rect_;
163 }; 165 };
164 166
165 } // namespace cc 167 } // namespace cc
166 168
167 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 169 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_display_output_surface_unittest.cc ('k') | cc/test/fake_resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698