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

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

Issue 2208693003: Revert of cc: Make LayerTreeTests use a DelegatingRenderer and Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/test/failure_output_surface.cc ('k') | cc/test/layer_tree_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 28 matching lines...) Expand all
39 39
40 static std::unique_ptr<FakeOutputSurface> Create3d( 40 static std::unique_ptr<FakeOutputSurface> Create3d(
41 scoped_refptr<ContextProvider> context_provider, 41 scoped_refptr<ContextProvider> context_provider,
42 scoped_refptr<ContextProvider> worker_context_provider) { 42 scoped_refptr<ContextProvider> worker_context_provider) {
43 return base::WrapUnique(new FakeOutputSurface( 43 return base::WrapUnique(new FakeOutputSurface(
44 context_provider, worker_context_provider, false)); 44 context_provider, worker_context_provider, false));
45 } 45 }
46 46
47 static std::unique_ptr<FakeOutputSurface> Create3d( 47 static std::unique_ptr<FakeOutputSurface> Create3d(
48 std::unique_ptr<TestGLES2Interface> gl) { 48 std::unique_ptr<TestGLES2Interface> gl) {
49 return base::WrapUnique(new FakeOutputSurface( 49 return base::WrapUnique(
50 TestContextProvider::Create(std::move(gl)), nullptr, false)); 50 new FakeOutputSurface(TestContextProvider::Create(std::move(gl)),
51 TestContextProvider::CreateWorker(), false));
51 } 52 }
52 53
53 static std::unique_ptr<FakeOutputSurface> Create3d( 54 static std::unique_ptr<FakeOutputSurface> Create3d(
54 std::unique_ptr<TestWebGraphicsContext3D> context) { 55 std::unique_ptr<TestWebGraphicsContext3D> context) {
55 return base::WrapUnique(new FakeOutputSurface( 56 return base::WrapUnique(new FakeOutputSurface(
56 TestContextProvider::Create(std::move(context)), nullptr, false)); 57 TestContextProvider::Create(std::move(context)), nullptr, false));
57 } 58 }
58 59
59 static std::unique_ptr<FakeOutputSurface> CreateSoftware( 60 static std::unique_ptr<FakeOutputSurface> CreateSoftware(
60 std::unique_ptr<SoftwareOutputDevice> software_device) { 61 std::unique_ptr<SoftwareOutputDevice> software_device) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 TransferableResourceArray resources_held_by_parent_; 174 TransferableResourceArray resources_held_by_parent_;
174 std::unique_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; 175 std::unique_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_;
175 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; 176 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr;
176 bool last_swap_rect_valid_ = false; 177 bool last_swap_rect_valid_ = false;
177 gfx::Rect last_swap_rect_; 178 gfx::Rect last_swap_rect_;
178 }; 179 };
179 180
180 } // namespace cc 181 } // namespace cc
181 182
182 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 183 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/test/failure_output_surface.cc ('k') | cc/test/layer_tree_pixel_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698