OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 ~SynchronousCompositorOutputSurface() override; | 69 ~SynchronousCompositorOutputSurface() override; |
70 | 70 |
71 void SetSyncClient(SynchronousCompositorOutputSurfaceClient* compositor); | 71 void SetSyncClient(SynchronousCompositorOutputSurfaceClient* compositor); |
72 bool OnMessageReceived(const IPC::Message& message); | 72 bool OnMessageReceived(const IPC::Message& message); |
73 | 73 |
74 // OutputSurface. | 74 // OutputSurface. |
75 bool BindToClient(cc::OutputSurfaceClient* surface_client) override; | 75 bool BindToClient(cc::OutputSurfaceClient* surface_client) override; |
76 void DetachFromClient() override; | 76 void DetachFromClient() override; |
77 void Reshape(const gfx::Size& size, | 77 void Reshape(const gfx::Size& size, |
78 float scale_factor, | 78 float scale_factor, |
| 79 const gfx::ColorSpace& color_space, |
79 bool has_alpha) override; | 80 bool has_alpha) override; |
80 void SwapBuffers(cc::CompositorFrame frame) override; | 81 void SwapBuffers(cc::CompositorFrame frame) override; |
81 void Invalidate() override; | 82 void Invalidate() override; |
82 void BindFramebuffer() override; | 83 void BindFramebuffer() override; |
83 uint32_t GetFramebufferCopyTextureFormat() override; | 84 uint32_t GetFramebufferCopyTextureFormat() override; |
84 | 85 |
85 // Partial SynchronousCompositor API implementation. | 86 // Partial SynchronousCompositor API implementation. |
86 void DemandDrawHw(const gfx::Size& surface_size, | 87 void DemandDrawHw(const gfx::Size& surface_size, |
87 const gfx::Transform& transform, | 88 const gfx::Transform& transform, |
88 const gfx::Rect& viewport, | 89 const gfx::Rect& viewport, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 bool fallback_tick_running_; | 134 bool fallback_tick_running_; |
134 | 135 |
135 base::ThreadChecker thread_checker_; | 136 base::ThreadChecker thread_checker_; |
136 | 137 |
137 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 138 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
138 }; | 139 }; |
139 | 140 |
140 } // namespace content | 141 } // namespace content |
141 | 142 |
142 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 143 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
OLD | NEW |