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

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

Issue 2857363004: Add buffer_to_texture_target_map to LayerTreeSettings (Closed)
Patch Set: Address comments in CompositorImpl Created 3 years, 7 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/layer_tree_pixel_test.h ('k') | cc/test/layer_tree_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/layer_tree_pixel_test.h" 5 #include "cc/test/layer_tree_pixel_test.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 21 matching lines...) Expand all
32 namespace cc { 32 namespace cc {
33 33
34 LayerTreePixelTest::LayerTreePixelTest() 34 LayerTreePixelTest::LayerTreePixelTest()
35 : pixel_comparator_(new ExactPixelComparator(true)), 35 : pixel_comparator_(new ExactPixelComparator(true)),
36 test_type_(PIXEL_TEST_GL), 36 test_type_(PIXEL_TEST_GL),
37 pending_texture_mailbox_callbacks_(0) {} 37 pending_texture_mailbox_callbacks_(0) {}
38 38
39 LayerTreePixelTest::~LayerTreePixelTest() {} 39 LayerTreePixelTest::~LayerTreePixelTest() {}
40 40
41 std::unique_ptr<TestCompositorFrameSink> 41 std::unique_ptr<TestCompositorFrameSink>
42 LayerTreePixelTest::CreateCompositorFrameSink( 42 LayerTreePixelTest::CreateCompositorFrameSink(
43 scoped_refptr<ContextProvider>, 43 const RendererSettings& renderer_settings,
44 scoped_refptr<ContextProvider>) { 44 scoped_refptr<ContextProvider>,
45 scoped_refptr<ContextProvider>) {
45 scoped_refptr<TestInProcessContextProvider> compositor_context_provider; 46 scoped_refptr<TestInProcessContextProvider> compositor_context_provider;
46 scoped_refptr<TestInProcessContextProvider> worker_context_provider; 47 scoped_refptr<TestInProcessContextProvider> worker_context_provider;
47 if (test_type_ == PIXEL_TEST_GL) { 48 if (test_type_ == PIXEL_TEST_GL) {
48 compositor_context_provider = new TestInProcessContextProvider(nullptr); 49 compositor_context_provider = new TestInProcessContextProvider(nullptr);
49 worker_context_provider = 50 worker_context_provider =
50 new TestInProcessContextProvider(compositor_context_provider.get()); 51 new TestInProcessContextProvider(compositor_context_provider.get());
51 } 52 }
52 constexpr bool disable_display_vsync = false; 53 constexpr bool disable_display_vsync = false;
53 bool synchronous_composite = 54 bool synchronous_composite =
54 !HasImplThread() && 55 !HasImplThread() &&
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } 288 }
288 289
289 void LayerTreePixelTest::Finish() { 290 void LayerTreePixelTest::Finish() {
290 std::unique_ptr<gpu::GLInProcessContext> context = 291 std::unique_ptr<gpu::GLInProcessContext> context =
291 CreateTestInProcessContext(); 292 CreateTestInProcessContext();
292 GLES2Interface* gl = context->GetImplementation(); 293 GLES2Interface* gl = context->GetImplementation();
293 gl->Finish(); 294 gl->Finish();
294 } 295 }
295 296
296 } // namespace cc 297 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_pixel_test.h ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698