| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_OUTPUT_SURFACE_MAC_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_OUTPUT_SURFACE_MAC_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_OUTPUT_SURFACE_MAC_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_OUTPUT_SURFACE_MAC_H_ |
| 7 | 7 |
| 8 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s
urface.h" | 8 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s
urface.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 class GpuOutputSurfaceMac | 12 class GpuOutputSurfaceMac |
| 13 : public GpuSurfacelessBrowserCompositorOutputSurface { | 13 : public GpuSurfacelessBrowserCompositorOutputSurface { |
| 14 public: | 14 public: |
| 15 GpuOutputSurfaceMac( | 15 GpuOutputSurfaceMac( |
| 16 scoped_refptr<ContextProviderCommandBuffer> context, | 16 scoped_refptr<ContextProviderCommandBuffer> context, |
| 17 gpu::SurfaceHandle surface_handle, | 17 gpu::SurfaceHandle surface_handle, |
| 18 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, | 18 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, |
| 19 base::SingleThreadTaskRunner* task_runner, | 19 cc::SyntheticBeginFrameSource* begin_frame_source, |
| 20 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 20 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
| 21 overlay_candidate_validator, | 21 overlay_candidate_validator, |
| 22 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); | 22 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); |
| 23 ~GpuOutputSurfaceMac() override; | 23 ~GpuOutputSurfaceMac() override; |
| 24 | 24 |
| 25 // cc::OutputSurface implementation. | 25 // cc::OutputSurface implementation. |
| 26 void SwapBuffers(cc::CompositorFrame* frame) override; | 26 void SwapBuffers(cc::CompositorFrame* frame) override; |
| 27 bool SurfaceIsSuspendForRecycle() const override; | 27 bool SurfaceIsSuspendForRecycle() const override; |
| 28 | 28 |
| 29 // BrowserCompositorOutputSurface implementation. | 29 // BrowserCompositorOutputSurface implementation. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 46 SHOULD_NOT_SHOW_FRAMES_NO_SWAP_AFTER_SUSPENDED, | 46 SHOULD_NOT_SHOW_FRAMES_NO_SWAP_AFTER_SUSPENDED, |
| 47 }; | 47 }; |
| 48 ShouldShowFramesState should_show_frames_state_ = SHOULD_SHOW_FRAMES; | 48 ShouldShowFramesState should_show_frames_state_ = SHOULD_SHOW_FRAMES; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(GpuOutputSurfaceMac); | 50 DISALLOW_COPY_AND_ASSIGN(GpuOutputSurfaceMac); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace content | 53 } // namespace content |
| 54 | 54 |
| 55 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_OUTPUT_SURFACE_MAC_H_ | 55 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_OUTPUT_SURFACE_MAC_H_ |
| OLD | NEW |