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

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

Issue 2128113002: Use a cc::Display for WebView resourceless software draws. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displaywebview: mojom Created 4 years, 5 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
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/test/pixel_test.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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 new FakeOutputSurface(TestContextProvider::Create(std::move(context)), 50 new FakeOutputSurface(TestContextProvider::Create(std::move(context)),
51 TestContextProvider::CreateWorker(), false)); 51 TestContextProvider::CreateWorker(), false));
52 } 52 }
53 53
54 static std::unique_ptr<FakeOutputSurface> CreateSoftware( 54 static std::unique_ptr<FakeOutputSurface> CreateSoftware(
55 std::unique_ptr<SoftwareOutputDevice> software_device) { 55 std::unique_ptr<SoftwareOutputDevice> software_device) {
56 return base::WrapUnique( 56 return base::WrapUnique(
57 new FakeOutputSurface(std::move(software_device), false)); 57 new FakeOutputSurface(std::move(software_device), false));
58 } 58 }
59 59
60 static std::unique_ptr<FakeOutputSurface>
61 Create3dWithResourcelessSoftwareSupport() {
62 return base::WrapUnique(new FakeOutputSurface(
63 TestContextProvider::Create(), TestContextProvider::CreateWorker(),
64 base::WrapUnique(new SoftwareOutputDevice), false));
65 }
66
67 static std::unique_ptr<FakeOutputSurface> CreateDelegating3d() { 60 static std::unique_ptr<FakeOutputSurface> CreateDelegating3d() {
68 return base::WrapUnique( 61 return base::WrapUnique(
69 new FakeOutputSurface(TestContextProvider::Create(), 62 new FakeOutputSurface(TestContextProvider::Create(),
70 TestContextProvider::CreateWorker(), true)); 63 TestContextProvider::CreateWorker(), true));
71 } 64 }
72 65
73 static std::unique_ptr<FakeOutputSurface> CreateDelegating3d( 66 static std::unique_ptr<FakeOutputSurface> CreateDelegating3d(
74 scoped_refptr<TestContextProvider> context_provider) { 67 scoped_refptr<TestContextProvider> context_provider) {
75 return base::WrapUnique(new FakeOutputSurface( 68 return base::WrapUnique(new FakeOutputSurface(
76 context_provider, TestContextProvider::CreateWorker(), true)); 69 context_provider, TestContextProvider::CreateWorker(), true));
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 GLenum framebuffer_format_ = 0; 171 GLenum framebuffer_format_ = 0;
179 TransferableResourceArray resources_held_by_parent_; 172 TransferableResourceArray resources_held_by_parent_;
180 std::unique_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; 173 std::unique_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_;
181 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; 174 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr;
182 gfx::Rect last_swap_rect_; 175 gfx::Rect last_swap_rect_;
183 }; 176 };
184 177
185 } // namespace cc 178 } // namespace cc
186 179
187 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 180 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/test/pixel_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698