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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.cc

Issue 663563002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | content/browser/android/java/gin_java_bridge_dispatcher_host.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 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 "content/browser/android/in_process/synchronous_compositor_factory_impl .h" 5 #include "content/browser/android/in_process/synchronous_compositor_factory_impl .h"
6 6
7 #include "base/observer_list.h" 7 #include "base/observer_list.h"
8 #include "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h" 8 #include "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "content/renderer/gpu/frame_swap_message_queue.h" 10 #include "content/renderer/gpu/frame_swap_message_queue.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 return record_full_layer_; 174 return record_full_layer_;
175 } 175 }
176 176
177 scoped_ptr<cc::OutputSurface> 177 scoped_ptr<cc::OutputSurface>
178 SynchronousCompositorFactoryImpl::CreateOutputSurface( 178 SynchronousCompositorFactoryImpl::CreateOutputSurface(
179 int routing_id, 179 int routing_id,
180 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) { 180 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) {
181 scoped_ptr<SynchronousCompositorOutputSurface> output_surface( 181 scoped_ptr<SynchronousCompositorOutputSurface> output_surface(
182 new SynchronousCompositorOutputSurface(routing_id, 182 new SynchronousCompositorOutputSurface(routing_id,
183 frame_swap_message_queue)); 183 frame_swap_message_queue));
184 return output_surface.PassAs<cc::OutputSurface>(); 184 return output_surface.Pass();
185 } 185 }
186 186
187 InputHandlerManagerClient* 187 InputHandlerManagerClient*
188 SynchronousCompositorFactoryImpl::GetInputHandlerManagerClient() { 188 SynchronousCompositorFactoryImpl::GetInputHandlerManagerClient() {
189 return synchronous_input_event_filter(); 189 return synchronous_input_event_filter();
190 } 190 }
191 191
192 scoped_refptr<ContextProviderWebContext> 192 scoped_refptr<ContextProviderWebContext>
193 SynchronousCompositorFactoryImpl::CreateOffscreenContextProvider( 193 SynchronousCompositorFactoryImpl::CreateOffscreenContextProvider(
194 const blink::WebGraphicsContext3D::Attributes& attributes, 194 const blink::WebGraphicsContext3D::Attributes& attributes,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 DCHECK(!service_.get()); 289 DCHECK(!service_.get());
290 service_ = service; 290 service_ = service;
291 } 291 }
292 292
293 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( 293 void SynchronousCompositorFactoryImpl::SetRecordFullDocument(
294 bool record_full_document) { 294 bool record_full_document) {
295 record_full_layer_ = record_full_document; 295 record_full_layer_ = record_full_document;
296 } 296 }
297 297
298 } // namespace content 298 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/java/gin_java_bridge_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698