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

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

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Cosmetic fixes Created 7 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
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_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 return false; 1384 return false;
1385 1385
1386 if (settings_.impl_side_painting) { 1386 if (settings_.impl_side_painting) {
1387 tile_manager_.reset(new TileManager(this, 1387 tile_manager_.reset(new TileManager(this,
1388 resource_provider.get(), 1388 resource_provider.get(),
1389 settings_.num_raster_threads, 1389 settings_.num_raster_threads,
1390 settings_.use_color_estimator, 1390 settings_.use_color_estimator,
1391 settings_.prediction_benchmarking, 1391 settings_.prediction_benchmarking,
1392 rendering_stats_instrumentation_)); 1392 rendering_stats_instrumentation_));
1393 UpdateTileManagerMemoryPolicy(managed_memory_policy_); 1393 UpdateTileManagerMemoryPolicy(managed_memory_policy_);
1394 if (settings_.use_gpu_memory_buffers)
reveman 2013/05/20 23:16:01 Do we need to filter this setting in LayerTreeHost
kaanb 2013/05/21 00:52:29 Done.
1395 tile_manager_->SetUseGpuMemoryBuffers(true);
1394 } 1396 }
1395 1397
1396 if (output_surface->capabilities().has_parent_compositor) { 1398 if (output_surface->capabilities().has_parent_compositor) {
1397 renderer_ = DelegatingRenderer::Create(this, output_surface.get(), 1399 renderer_ = DelegatingRenderer::Create(this, output_surface.get(),
1398 resource_provider.get()); 1400 resource_provider.get());
1399 } else if (output_surface->context3d()) { 1401 } else if (output_surface->context3d()) {
1400 renderer_ = GLRenderer::Create(this, 1402 renderer_ = GLRenderer::Create(this,
1401 output_surface.get(), 1403 output_surface.get(),
1402 resource_provider.get(), 1404 resource_provider.get(),
1403 settings_.highp_threshold_min); 1405 settings_.highp_threshold_min);
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 } 2165 }
2164 2166
2165 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) { 2167 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) {
2166 if (debug_state_.continuous_painting != debug_state.continuous_painting) 2168 if (debug_state_.continuous_painting != debug_state.continuous_painting)
2167 paint_time_counter_->ClearHistory(); 2169 paint_time_counter_->ClearHistory();
2168 2170
2169 debug_state_ = debug_state; 2171 debug_state_ = debug_state;
2170 } 2172 }
2171 2173
2172 } // namespace cc 2174 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698