| 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 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override; | 52 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override; |
| 53 #if defined(OS_MACOSX) | 53 #if defined(OS_MACOSX) |
| 54 void SetSurfaceSuspendedForRecycle(bool suspended) override; | 54 void SetSurfaceSuspendedForRecycle(bool suspended) override; |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 // cc::OutputSurface implementation. | 57 // cc::OutputSurface implementation. |
| 58 bool BindToClient(cc::OutputSurfaceClient* client) override; | 58 bool BindToClient(cc::OutputSurfaceClient* client) override; |
| 59 void EnsureBackbuffer() override; | 59 void EnsureBackbuffer() override; |
| 60 void DiscardBackbuffer() override; | 60 void DiscardBackbuffer() override; |
| 61 void BindFramebuffer() override; | 61 void BindFramebuffer() override; |
| 62 void Reshape(const gfx::Size& size, |
| 63 float device_scale_factor, |
| 64 const gfx::ColorSpace& color_space, |
| 65 bool has_alpha) override; |
| 62 void SwapBuffers(cc::OutputSurfaceFrame frame) override; | 66 void SwapBuffers(cc::OutputSurfaceFrame frame) override; |
| 63 uint32_t GetFramebufferCopyTextureFormat() override; | 67 uint32_t GetFramebufferCopyTextureFormat() override; |
| 64 bool IsDisplayedAsOverlayPlane() const override; | 68 bool IsDisplayedAsOverlayPlane() const override; |
| 65 unsigned GetOverlayTextureId() const override; | 69 unsigned GetOverlayTextureId() const override; |
| 66 bool SurfaceIsSuspendForRecycle() const override; | 70 bool SurfaceIsSuspendForRecycle() const override; |
| 67 | 71 |
| 68 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); | 72 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); |
| 69 | 73 |
| 70 base::CancelableCallback<void( | 74 base::CancelableCallback<void( |
| 71 const std::vector<ui::LatencyInfo>&, | 75 const std::vector<ui::LatencyInfo>&, |
| 72 gfx::SwapResult, | 76 gfx::SwapResult, |
| 73 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)> | 77 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)> |
| 74 swap_buffers_completion_callback_; | 78 swap_buffers_completion_callback_; |
| 75 base::CancelableCallback<void(base::TimeTicks timebase, | 79 base::CancelableCallback<void(base::TimeTicks timebase, |
| 76 base::TimeDelta interval)> | 80 base::TimeDelta interval)> |
| 77 update_vsync_parameters_callback_; | 81 update_vsync_parameters_callback_; |
| 78 | 82 |
| 79 std::unique_ptr<ReflectorTexture> reflector_texture_; | 83 std::unique_ptr<ReflectorTexture> reflector_texture_; |
| 80 | 84 |
| 81 private: | 85 private: |
| 82 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); | 86 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); |
| 83 }; | 87 }; |
| 84 | 88 |
| 85 } // namespace content | 89 } // namespace content |
| 86 | 90 |
| 87 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 91 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |