| 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_FRAME_SINK_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ | 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue); | 79 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue); |
| 80 ~SynchronousCompositorFrameSink() override; | 80 ~SynchronousCompositorFrameSink() override; |
| 81 | 81 |
| 82 void SetSyncClient(SynchronousCompositorFrameSinkClient* compositor); | 82 void SetSyncClient(SynchronousCompositorFrameSinkClient* compositor); |
| 83 bool OnMessageReceived(const IPC::Message& message); | 83 bool OnMessageReceived(const IPC::Message& message); |
| 84 | 84 |
| 85 // cc::CompositorFrameSink implementation. | 85 // cc::CompositorFrameSink implementation. |
| 86 bool BindToClient(cc::CompositorFrameSinkClient* sink_client) override; | 86 bool BindToClient(cc::CompositorFrameSinkClient* sink_client) override; |
| 87 void DetachFromClient() override; | 87 void DetachFromClient() override; |
| 88 void SubmitCompositorFrame(cc::CompositorFrame frame) override; | 88 void SubmitCompositorFrame(cc::CompositorFrame frame) override; |
| 89 void BeginFrameDidNotProduceFrame(const cc::BeginFrameAck& ack) override; |
| 89 void Invalidate() override; | 90 void Invalidate() override; |
| 90 | 91 |
| 91 // Partial SynchronousCompositor API implementation. | 92 // Partial SynchronousCompositor API implementation. |
| 92 void DemandDrawHw(const gfx::Size& viewport_size, | 93 void DemandDrawHw(const gfx::Size& viewport_size, |
| 93 const gfx::Rect& viewport_rect_for_tile_priority, | 94 const gfx::Rect& viewport_rect_for_tile_priority, |
| 94 const gfx::Transform& transform_for_tile_priority); | 95 const gfx::Transform& transform_for_tile_priority); |
| 95 void DemandDrawSw(SkCanvas* canvas); | 96 void DemandDrawSw(SkCanvas* canvas); |
| 96 | 97 |
| 97 // CompositorFrameSinkSupportClient implementation. | 98 // CompositorFrameSinkSupportClient implementation. |
| 98 void DidReceiveCompositorFrameAck( | 99 void DidReceiveCompositorFrameAck( |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 gfx::Rect sw_viewport_for_current_draw_; | 170 gfx::Rect sw_viewport_for_current_draw_; |
| 170 | 171 |
| 171 base::ThreadChecker thread_checker_; | 172 base::ThreadChecker thread_checker_; |
| 172 | 173 |
| 173 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink); | 174 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink); |
| 174 }; | 175 }; |
| 175 | 176 |
| 176 } // namespace content | 177 } // namespace content |
| 177 | 178 |
| 178 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ | 179 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |