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

Side by Side Diff: content/browser/compositor/offscreen_browser_compositor_output_surface.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/compositor/offscreen_browser_compositor_output_surface .h" 5 #include "content/browser/compositor/offscreen_browser_compositor_output_surface .h"
6 6
7 #include <utility>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "build/build_config.h" 10 #include "build/build_config.h"
9 #include "cc/output/compositor_frame.h" 11 #include "cc/output/compositor_frame.h"
10 #include "cc/output/compositor_frame_ack.h" 12 #include "cc/output/compositor_frame_ack.h"
11 #include "cc/output/gl_frame_data.h" 13 #include "cc/output/gl_frame_data.h"
12 #include "cc/output/output_surface_client.h" 14 #include "cc/output/output_surface_client.h"
13 #include "cc/resources/resource_provider.h" 15 #include "cc/resources/resource_provider.h"
14 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida tor.h" 16 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida tor.h"
15 #include "content/browser/compositor/reflector_impl.h" 17 #include "content/browser/compositor/reflector_impl.h"
16 #include "content/browser/compositor/reflector_texture.h" 18 #include "content/browser/compositor/reflector_texture.h"
(...skipping 14 matching lines...) Expand all
31 OffscreenBrowserCompositorOutputSurface:: 33 OffscreenBrowserCompositorOutputSurface::
32 OffscreenBrowserCompositorOutputSurface( 34 OffscreenBrowserCompositorOutputSurface(
33 const scoped_refptr<ContextProviderCommandBuffer>& context, 35 const scoped_refptr<ContextProviderCommandBuffer>& context,
34 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, 36 const scoped_refptr<ContextProviderCommandBuffer>& worker_context,
35 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, 37 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
36 scoped_ptr<BrowserCompositorOverlayCandidateValidator> 38 scoped_ptr<BrowserCompositorOverlayCandidateValidator>
37 overlay_candidate_validator) 39 overlay_candidate_validator)
38 : BrowserCompositorOutputSurface(context, 40 : BrowserCompositorOutputSurface(context,
39 worker_context, 41 worker_context,
40 vsync_manager, 42 vsync_manager,
41 overlay_candidate_validator.Pass()), 43 std::move(overlay_candidate_validator)),
42 fbo_(0), 44 fbo_(0),
43 is_backbuffer_discarded_(false), 45 is_backbuffer_discarded_(false),
44 weak_ptr_factory_(this) { 46 weak_ptr_factory_(this) {
45 capabilities_.uses_default_gl_framebuffer = false; 47 capabilities_.uses_default_gl_framebuffer = false;
46 } 48 }
47 49
48 OffscreenBrowserCompositorOutputSurface:: 50 OffscreenBrowserCompositorOutputSurface::
49 ~OffscreenBrowserCompositorOutputSurface() { 51 ~OffscreenBrowserCompositorOutputSurface() {
50 DiscardBackbuffer(); 52 DiscardBackbuffer();
51 } 53 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 #if defined(OS_MACOSX) 166 #if defined(OS_MACOSX)
165 167
166 bool OffscreenBrowserCompositorOutputSurface:: 168 bool OffscreenBrowserCompositorOutputSurface::
167 SurfaceShouldNotShowFramesAfterSuspendForRecycle() const { 169 SurfaceShouldNotShowFramesAfterSuspendForRecycle() const {
168 return true; 170 return true;
169 } 171 }
170 172
171 #endif 173 #endif
172 174
173 } // namespace content 175 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698