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

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

Issue 1177033008: cc: Turn impl_side_painting and use_one_copy on in LayerTreeSettings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implon: fixwebkittests Created 5 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/test/layer_tree_json_parser_unittest.cc ('k') | cc/trees/layer_tree_host_common_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 partial_texture_update_requests_(0), 114 partial_texture_update_requests_(0),
115 did_complete_scale_animation_(false), 115 did_complete_scale_animation_(false),
116 in_paint_layer_contents_(false), 116 in_paint_layer_contents_(false),
117 id_(s_layer_tree_host_sequence_number.GetNext() + 1), 117 id_(s_layer_tree_host_sequence_number.GetNext() + 1),
118 next_commit_forces_redraw_(false), 118 next_commit_forces_redraw_(false),
119 shared_bitmap_manager_(params->shared_bitmap_manager), 119 shared_bitmap_manager_(params->shared_bitmap_manager),
120 gpu_memory_buffer_manager_(params->gpu_memory_buffer_manager), 120 gpu_memory_buffer_manager_(params->gpu_memory_buffer_manager),
121 task_graph_runner_(params->task_graph_runner), 121 task_graph_runner_(params->task_graph_runner),
122 surface_id_namespace_(0u), 122 surface_id_namespace_(0u),
123 next_surface_sequence_(1u) { 123 next_surface_sequence_(1u) {
124 DCHECK_IMPLIES(settings_.impl_side_painting, task_graph_runner_);
124 if (settings_.accelerated_animation_enabled) 125 if (settings_.accelerated_animation_enabled)
125 animation_registrar_ = AnimationRegistrar::Create(); 126 animation_registrar_ = AnimationRegistrar::Create();
126 rendering_stats_instrumentation_->set_record_rendering_stats( 127 rendering_stats_instrumentation_->set_record_rendering_stats(
127 debug_state_.RecordRenderingStats()); 128 debug_state_.RecordRenderingStats());
128 } 129 }
129 130
130 void LayerTreeHost::InitializeThreaded( 131 void LayerTreeHost::InitializeThreaded(
131 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 132 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
132 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 133 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
133 scoped_ptr<BeginFrameSource> external_begin_frame_source) { 134 scoped_ptr<BeginFrameSource> external_begin_frame_source) {
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 } 1295 }
1295 1296
1296 void LayerTreeHost::RecordFrameTimingEvents( 1297 void LayerTreeHost::RecordFrameTimingEvents(
1297 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 1298 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
1298 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { 1299 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) {
1299 client_->RecordFrameTimingEvents(composite_events.Pass(), 1300 client_->RecordFrameTimingEvents(composite_events.Pass(),
1300 main_frame_events.Pass()); 1301 main_frame_events.Pass());
1301 } 1302 }
1302 1303
1303 } // namespace cc 1304 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_json_parser_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698