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

Side by Side Diff: cc/trees/layer_tree_host_perftest.cc

Issue 2857363004: Add buffer_to_texture_target_map to LayerTreeSettings (Closed)
Patch Set: Address comments in CompositorImpl Created 3 years, 6 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/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('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 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 29 matching lines...) Expand all
40 : draw_timer_(kWarmupRuns, 40 : draw_timer_(kWarmupRuns,
41 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), 41 base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
42 kTimeCheckInterval), 42 kTimeCheckInterval),
43 commit_timer_(0, base::TimeDelta(), 1), 43 commit_timer_(0, base::TimeDelta(), 1),
44 full_damage_each_frame_(false), 44 full_damage_each_frame_(false),
45 begin_frame_driven_drawing_(false), 45 begin_frame_driven_drawing_(false),
46 measure_commit_cost_(false) { 46 measure_commit_cost_(false) {
47 } 47 }
48 48
49 std::unique_ptr<TestCompositorFrameSink> CreateCompositorFrameSink( 49 std::unique_ptr<TestCompositorFrameSink> CreateCompositorFrameSink(
50 const RendererSettings& renderer_settings,
50 scoped_refptr<ContextProvider> compositor_context_provider, 51 scoped_refptr<ContextProvider> compositor_context_provider,
51 scoped_refptr<ContextProvider> worker_context_provider) override { 52 scoped_refptr<ContextProvider> worker_context_provider) override {
52 constexpr bool disable_display_vsync = true; 53 constexpr bool disable_display_vsync = true;
53 bool synchronous_composite = 54 bool synchronous_composite =
54 !HasImplThread() && 55 !HasImplThread() &&
55 !layer_tree_host()->GetSettings().single_thread_proxy_scheduler; 56 !layer_tree_host()->GetSettings().single_thread_proxy_scheduler;
56 return base::MakeUnique<TestCompositorFrameSink>( 57 return base::MakeUnique<TestCompositorFrameSink>(
57 compositor_context_provider, std::move(worker_context_provider), 58 compositor_context_provider, std::move(worker_context_provider),
58 shared_bitmap_manager(), gpu_memory_buffer_manager(), 59 shared_bitmap_manager(), gpu_memory_buffer_manager(), renderer_settings,
59 layer_tree_host()->GetSettings().renderer_settings,
60 ImplThreadTaskRunner(), synchronous_composite, disable_display_vsync); 60 ImplThreadTaskRunner(), synchronous_composite, disable_display_vsync);
61 } 61 }
62 62
63 void BeginTest() override { 63 void BeginTest() override {
64 BuildTree(); 64 BuildTree();
65 PostSetNeedsCommitToMainThread(); 65 PostSetNeedsCommitToMainThread();
66 } 66 }
67 67
68 void BeginMainFrame(const BeginFrameArgs& args) override { 68 void BeginMainFrame(const BeginFrameArgs& args) override {
69 if (begin_frame_driven_drawing_ && !TestEnded()) 69 if (begin_frame_driven_drawing_ && !TestEnded())
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 TEST_F(LayerTreeHostPerfTestJsonReader, MAYBE_HeavyPageThreaded) { 385 TEST_F(LayerTreeHostPerfTestJsonReader, MAYBE_HeavyPageThreaded) {
386 begin_frame_driven_drawing_ = true; 386 begin_frame_driven_drawing_ = true;
387 measure_commit_cost_ = true; 387 measure_commit_cost_ = true;
388 SetTestName("heavy_page"); 388 SetTestName("heavy_page");
389 ReadTestFile("heavy_layer_tree"); 389 ReadTestFile("heavy_layer_tree");
390 RunTest(CompositorMode::THREADED); 390 RunTest(CompositorMode::THREADED);
391 } 391 }
392 392
393 } // namespace 393 } // namespace
394 } // namespace cc 394 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698