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

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

Issue 1931213002: display_compositor: Move CompositorOverlayCandidateValidator from content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DONE_2016.04.28_dc-overlay-candidate-validator
Patch Set: . Created 4 years, 7 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 "content/browser/compositor/gpu_browser_compositor_output_surface.h" 5 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
11 #include "cc/output/output_surface_client.h" 11 #include "cc/output/output_surface_client.h"
12 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida tor.h" 12 #include "components/display_compositor/compositor_overlay_candidate_validator.h "
13 #include "content/browser/compositor/reflector_impl.h" 13 #include "content/browser/compositor/reflector_impl.h"
14 #include "content/browser/compositor/reflector_texture.h" 14 #include "content/browser/compositor/reflector_texture.h"
15 #include "content/browser/renderer_host/render_widget_host_impl.h" 15 #include "content/browser/renderer_host/render_widget_host_impl.h"
16 #include "content/common/gpu/client/context_provider_command_buffer.h" 16 #include "content/common/gpu/client/context_provider_command_buffer.h"
17 #include "gpu/command_buffer/client/context_support.h" 17 #include "gpu/command_buffer/client/context_support.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 GpuBrowserCompositorOutputSurface::GpuBrowserCompositorOutputSurface( 21 GpuBrowserCompositorOutputSurface::GpuBrowserCompositorOutputSurface(
22 const scoped_refptr<ContextProviderCommandBuffer>& context, 22 const scoped_refptr<ContextProviderCommandBuffer>& context,
23 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, 23 const scoped_refptr<ContextProviderCommandBuffer>& worker_context,
24 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, 24 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
25 base::SingleThreadTaskRunner* task_runner, 25 base::SingleThreadTaskRunner* task_runner,
26 std::unique_ptr<BrowserCompositorOverlayCandidateValidator> 26 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
27 overlay_candidate_validator) 27 overlay_candidate_validator)
28 : BrowserCompositorOutputSurface(context, 28 : BrowserCompositorOutputSurface(context,
29 worker_context, 29 worker_context,
30 vsync_manager, 30 vsync_manager,
31 task_runner, 31 task_runner,
32 std::move(overlay_candidate_validator)), 32 std::move(overlay_candidate_validator)),
33 #if defined(OS_MACOSX) 33 #if defined(OS_MACOSX)
34 should_show_frames_state_(SHOULD_SHOW_FRAMES), 34 should_show_frames_state_(SHOULD_SHOW_FRAMES),
35 #endif 35 #endif
36 swap_buffers_completion_callback_(base::Bind( 36 swap_buffers_completion_callback_(base::Bind(
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const { 157 bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const {
158 #if defined(OS_MACOSX) 158 #if defined(OS_MACOSX)
159 return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED; 159 return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED;
160 #else 160 #else
161 return false; 161 return false;
162 #endif 162 #endif
163 } 163 }
164 164
165 } // namespace content 165 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698