OLD | NEW |
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 "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor.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 #include "gpu/ipc/client/command_buffer_proxy_impl.h" |
18 | 19 |
19 namespace content { | 20 namespace content { |
20 | 21 |
21 GpuBrowserCompositorOutputSurface::GpuBrowserCompositorOutputSurface( | 22 GpuBrowserCompositorOutputSurface::GpuBrowserCompositorOutputSurface( |
22 const scoped_refptr<ContextProviderCommandBuffer>& context, | 23 const scoped_refptr<ContextProviderCommandBuffer>& context, |
23 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, | 24 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, |
24 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, | 25 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, |
25 base::SingleThreadTaskRunner* task_runner, | 26 base::SingleThreadTaskRunner* task_runner, |
26 std::unique_ptr<BrowserCompositorOverlayCandidateValidator> | 27 std::unique_ptr<BrowserCompositorOverlayCandidateValidator> |
27 overlay_candidate_validator) | 28 overlay_candidate_validator) |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 157 |
157 bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const { | 158 bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const { |
158 #if defined(OS_MACOSX) | 159 #if defined(OS_MACOSX) |
159 return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED; | 160 return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED; |
160 #else | 161 #else |
161 return false; | 162 return false; |
162 #endif | 163 #endif |
163 } | 164 } |
164 | 165 |
165 } // namespace content | 166 } // namespace content |
OLD | NEW |