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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const scoped_refptr<cc::ContextProvider>& context_provider, | 57 const scoped_refptr<cc::ContextProvider>& context_provider, |
58 const scoped_refptr<cc::ContextProvider>& worker_context_provider, | 58 const scoped_refptr<cc::ContextProvider>& worker_context_provider, |
59 int routing_id, | 59 int routing_id, |
60 SynchronousCompositorRegistry* registry, | 60 SynchronousCompositorRegistry* registry, |
61 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue); | 61 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue); |
62 ~SynchronousCompositorOutputSurface() override; | 62 ~SynchronousCompositorOutputSurface() override; |
63 | 63 |
64 void SetSyncClient(SynchronousCompositorOutputSurfaceClient* compositor); | 64 void SetSyncClient(SynchronousCompositorOutputSurfaceClient* compositor); |
65 | 65 |
66 // OutputSurface. | 66 // OutputSurface. |
| 67 void DidLoseOutputSurface() override; |
67 bool BindToClient(cc::OutputSurfaceClient* surface_client) override; | 68 bool BindToClient(cc::OutputSurfaceClient* surface_client) override; |
68 void DetachFromClient() override; | 69 void DetachFromClient() override; |
69 void Reshape(const gfx::Size& size, | 70 void Reshape(const gfx::Size& size, |
70 float scale_factor, | 71 float scale_factor, |
71 bool has_alpha) override; | 72 bool has_alpha) override; |
72 void SwapBuffers(cc::CompositorFrame* frame) override; | 73 void SwapBuffers(cc::CompositorFrame* frame) override; |
73 void Invalidate() override; | 74 void Invalidate() override; |
74 | 75 |
75 // Partial SynchronousCompositor API implementation. | 76 // Partial SynchronousCompositor API implementation. |
76 scoped_ptr<cc::CompositorFrame> DemandDrawHw( | 77 scoped_ptr<cc::CompositorFrame> DemandDrawHw( |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; | 118 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; |
118 | 119 |
119 base::ThreadChecker thread_checker_; | 120 base::ThreadChecker thread_checker_; |
120 | 121 |
121 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 122 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
122 }; | 123 }; |
123 | 124 |
124 } // namespace content | 125 } // namespace content |
125 | 126 |
126 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 127 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
OLD | NEW |