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

Side by Side Diff: mojo/services/view_manager/context_factory_impl.cc

Issue 502573006: Remove implicit conversions from scoped_refptr to T* in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/services/view_manager/context_factory_impl.h" 5 #include "mojo/services/view_manager/context_factory_impl.h"
6 6
7 #include "cc/output/output_surface.h" 7 #include "cc/output/output_surface.h"
8 #include "mojo/cc/context_provider_mojo.h" 8 #include "mojo/cc/context_provider_mojo.h"
9 #include "ui/compositor/reflector.h" 9 #include "ui/compositor/reflector.h"
10 #include "ui/gl/gl_implementation.h" 10 #include "ui/gl/gl_implementation.h"
(...skipping 30 matching lines...) Expand all
41 ui::Layer* mirroring_layer) { 41 ui::Layer* mirroring_layer) {
42 return NULL; 42 return NULL;
43 } 43 }
44 44
45 void ContextFactoryImpl::RemoveReflector( 45 void ContextFactoryImpl::RemoveReflector(
46 scoped_refptr<ui::Reflector> reflector) { 46 scoped_refptr<ui::Reflector> reflector) {
47 } 47 }
48 48
49 scoped_refptr<cc::ContextProvider> 49 scoped_refptr<cc::ContextProvider>
50 ContextFactoryImpl::SharedMainThreadContextProvider() { 50 ContextFactoryImpl::SharedMainThreadContextProvider() {
51 if (!shared_main_thread_contexts_ || 51 if (!shared_main_thread_contexts_.get() ||
52 shared_main_thread_contexts_->DestroyedOnMainThread()) { 52 shared_main_thread_contexts_->DestroyedOnMainThread()) {
53 bool lose_context_when_out_of_memory = false; 53 bool lose_context_when_out_of_memory = false;
54 shared_main_thread_contexts_ = 54 shared_main_thread_contexts_ =
55 webkit::gpu::ContextProviderInProcess::CreateOffscreen( 55 webkit::gpu::ContextProviderInProcess::CreateOffscreen(
56 lose_context_when_out_of_memory); 56 lose_context_when_out_of_memory);
57 if (shared_main_thread_contexts_ && 57 if (shared_main_thread_contexts_.get() &&
58 !shared_main_thread_contexts_->BindToCurrentThread()) 58 !shared_main_thread_contexts_->BindToCurrentThread())
59 shared_main_thread_contexts_ = NULL; 59 shared_main_thread_contexts_ = NULL;
60 } 60 }
61 return shared_main_thread_contexts_; 61 return shared_main_thread_contexts_;
62 } 62 }
63 63
64 void ContextFactoryImpl::RemoveCompositor(ui::Compositor* compositor) { 64 void ContextFactoryImpl::RemoveCompositor(ui::Compositor* compositor) {
65 } 65 }
66 66
67 bool ContextFactoryImpl::DoesCreateTestContexts() { return false; } 67 bool ContextFactoryImpl::DoesCreateTestContexts() { return false; }
68 68
69 cc::SharedBitmapManager* ContextFactoryImpl::GetSharedBitmapManager() { 69 cc::SharedBitmapManager* ContextFactoryImpl::GetSharedBitmapManager() {
70 return NULL; 70 return NULL;
71 } 71 }
72 72
73 base::MessageLoopProxy* ContextFactoryImpl::GetCompositorMessageLoop() { 73 base::MessageLoopProxy* ContextFactoryImpl::GetCompositorMessageLoop() {
74 return NULL; 74 return NULL;
75 } 75 }
76 76
77 } // namespace service 77 } // namespace service
78 } // namespace mojo 78 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698