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

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

Issue 485043003: cc: Use correct message loop proxy in BlockingTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/blocking_task_runner_unittest.cc ('k') | cc/trees/layer_tree_host_perftest.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_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 resource_provider_.reset(); 2057 resource_provider_.reset();
2058 output_surface_.reset(); 2058 output_surface_.reset();
2059 2059
2060 if (!output_surface->BindToClient(this)) 2060 if (!output_surface->BindToClient(this))
2061 return false; 2061 return false;
2062 2062
2063 output_surface_ = output_surface.Pass(); 2063 output_surface_ = output_surface.Pass();
2064 resource_provider_ = 2064 resource_provider_ =
2065 ResourceProvider::Create(output_surface_.get(), 2065 ResourceProvider::Create(output_surface_.get(),
2066 shared_bitmap_manager_, 2066 shared_bitmap_manager_,
2067 proxy_->blocking_main_thread_task_runner(),
2067 settings_.highp_threshold_min, 2068 settings_.highp_threshold_min,
2068 settings_.use_rgba_4444_textures, 2069 settings_.use_rgba_4444_textures,
2069 settings_.texture_id_allocation_chunk_size, 2070 settings_.texture_id_allocation_chunk_size,
2070 settings_.use_distance_field_text); 2071 settings_.use_distance_field_text);
2071 2072
2072 if (output_surface_->capabilities().deferred_gl_initialization) 2073 if (output_surface_->capabilities().deferred_gl_initialization)
2073 EnforceZeroBudget(true); 2074 EnforceZeroBudget(true);
2074 2075
2075 CreateAndSetRenderer(); 2076 CreateAndSetRenderer();
2076 2077
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
3357 } 3358 }
3358 3359
3359 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 3360 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
3360 std::vector<PictureLayerImpl*>::iterator it = 3361 std::vector<PictureLayerImpl*>::iterator it =
3361 std::find(picture_layers_.begin(), picture_layers_.end(), layer); 3362 std::find(picture_layers_.begin(), picture_layers_.end(), layer);
3362 DCHECK(it != picture_layers_.end()); 3363 DCHECK(it != picture_layers_.end());
3363 picture_layers_.erase(it); 3364 picture_layers_.erase(it);
3364 } 3365 }
3365 3366
3366 } // namespace cc 3367 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/blocking_task_runner_unittest.cc ('k') | cc/trees/layer_tree_host_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698