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 "build/build_config.h" |
7 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
8 #include "cc/output/output_surface_client.h" | 9 #include "cc/output/output_surface_client.h" |
9 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor.h" | 10 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor.h" |
10 #include "content/browser/compositor/reflector_impl.h" | 11 #include "content/browser/compositor/reflector_impl.h" |
11 #include "content/browser/compositor/reflector_texture.h" | 12 #include "content/browser/compositor/reflector_texture.h" |
12 #include "content/browser/renderer_host/render_widget_host_impl.h" | 13 #include "content/browser/renderer_host/render_widget_host_impl.h" |
13 #include "content/common/gpu/client/context_provider_command_buffer.h" | 14 #include "content/common/gpu/client/context_provider_command_buffer.h" |
14 #include "gpu/command_buffer/client/context_support.h" | 15 #include "gpu/command_buffer/client/context_support.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 148 |
148 bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const { | 149 bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const { |
149 #if defined(OS_MACOSX) | 150 #if defined(OS_MACOSX) |
150 return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED; | 151 return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED; |
151 #else | 152 #else |
152 return false; | 153 return false; |
153 #endif | 154 #endif |
154 } | 155 } |
155 | 156 |
156 } // namespace content | 157 } // namespace content |
OLD | NEW |