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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 500123003: Remove implicit conversions from scoped_refptr to T* in cc/trees/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index afba687b2d8d3bcdc42ae39e27fdb42e95d1e043..9baa32e33d73a2f3bd1080d12da2e48b5c9aaf31 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1946,7 +1946,8 @@ void LayerTreeHostImpl::CreateAndSetTileManager() {
DCHECK(resource_provider_);
DCHECK(proxy_->ImplThreadTaskRunner());
- ContextProvider* context_provider = output_surface_->context_provider();
+ scoped_refptr<ContextProvider> context_provider =
danakj 2014/08/25 20:25:01 I don't see anything this is passed to needing a s
dcheng 2014/08/25 20:56:58 This is the tool's logic kicking in--context_provi
+ output_surface_->context_provider();
transfer_buffer_memory_limit_ =
GetMaxTransferBufferUsageBytes(context_provider);
danakj 2014/08/25 20:25:01 If not you need .get() here and in most of these p
dcheng 2014/08/25 20:56:58 Yeah, that's the problem with this tool--it's sing

Powered by Google App Engine
This is Rietveld 408576698