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 CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 5 #ifndef CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
10 #include "cc/output/output_surface.h" | 10 #include "cc/output/output_surface.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 scoped_refptr<ContextProvider> context_provider, | 34 scoped_refptr<ContextProvider> context_provider, |
35 scoped_refptr<ContextProvider> worker_context_provider); | 35 scoped_refptr<ContextProvider> worker_context_provider); |
36 SurfaceDisplayOutputSurface( | 36 SurfaceDisplayOutputSurface( |
37 SurfaceManager* surface_manager, | 37 SurfaceManager* surface_manager, |
38 SurfaceIdAllocator* allocator, | 38 SurfaceIdAllocator* allocator, |
39 Display* display, | 39 Display* display, |
40 scoped_refptr<VulkanContextProvider> vulkan_context_provider); | 40 scoped_refptr<VulkanContextProvider> vulkan_context_provider); |
41 ~SurfaceDisplayOutputSurface() override; | 41 ~SurfaceDisplayOutputSurface() override; |
42 | 42 |
43 // OutputSurface implementation. | 43 // OutputSurface implementation. |
44 void SwapBuffers(CompositorFrame* frame) override; | 44 void SwapBuffers(CompositorFrame frame) override; |
45 bool BindToClient(OutputSurfaceClient* client) override; | 45 bool BindToClient(OutputSurfaceClient* client) override; |
46 void ForceReclaimResources() override; | 46 void ForceReclaimResources() override; |
47 void DetachFromClient() override; | 47 void DetachFromClient() override; |
48 void BindFramebuffer() override; | 48 void BindFramebuffer() override; |
49 uint32_t GetFramebufferCopyTextureFormat() override; | 49 uint32_t GetFramebufferCopyTextureFormat() override; |
50 | 50 |
51 // SurfaceFactoryClient implementation. | 51 // SurfaceFactoryClient implementation. |
52 void ReturnResources(const ReturnedResourceArray& resources) override; | 52 void ReturnResources(const ReturnedResourceArray& resources) override; |
53 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; | 53 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; |
54 | 54 |
(...skipping 14 matching lines...) Expand all Loading... |
69 SurfaceId delegated_surface_id_; | 69 SurfaceId delegated_surface_id_; |
70 gfx::Size last_swap_frame_size_; | 70 gfx::Size last_swap_frame_size_; |
71 bool output_surface_lost_ = false; | 71 bool output_surface_lost_ = false; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); | 73 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace cc | 76 } // namespace cc |
77 | 77 |
78 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 78 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
OLD | NEW |