| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Partial SynchronousCompositor API implementation. | 90 // Partial SynchronousCompositor API implementation. |
| 91 void DemandDrawHw(const gfx::Size& viewport_size, | 91 void DemandDrawHw(const gfx::Size& viewport_size, |
| 92 const gfx::Rect& viewport_rect_for_tile_priority, | 92 const gfx::Rect& viewport_rect_for_tile_priority, |
| 93 const gfx::Transform& transform_for_tile_priority); | 93 const gfx::Transform& transform_for_tile_priority); |
| 94 void DemandDrawSw(SkCanvas* canvas); | 94 void DemandDrawSw(SkCanvas* canvas); |
| 95 | 95 |
| 96 // CompositorFrameSinkSupportClient implementation. | 96 // CompositorFrameSinkSupportClient implementation. |
| 97 void DidReceiveCompositorFrameAck() override; | 97 void DidReceiveCompositorFrameAck() override; |
| 98 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 98 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 99 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 99 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
| 100 void WillDrawSurface() override; | 100 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, |
| 101 const gfx::Rect& damage_rect) override; |
| 101 | 102 |
| 102 private: | 103 private: |
| 103 class SoftwareOutputSurface; | 104 class SoftwareOutputSurface; |
| 104 | 105 |
| 105 void InvokeComposite(const gfx::Transform& transform, | 106 void InvokeComposite(const gfx::Transform& transform, |
| 106 const gfx::Rect& viewport); | 107 const gfx::Rect& viewport); |
| 107 bool Send(IPC::Message* message); | 108 bool Send(IPC::Message* message); |
| 108 void DidActivatePendingTree(); | 109 void DidActivatePendingTree(); |
| 109 void DeliverMessages(); | 110 void DeliverMessages(); |
| 110 bool CalledOnValidThread() const; | 111 bool CalledOnValidThread() const; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 gfx::Rect sw_viewport_for_current_draw_; | 166 gfx::Rect sw_viewport_for_current_draw_; |
| 166 | 167 |
| 167 base::ThreadChecker thread_checker_; | 168 base::ThreadChecker thread_checker_; |
| 168 | 169 |
| 169 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink); | 170 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink); |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 } // namespace content | 173 } // namespace content |
| 173 | 174 |
| 174 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ | 175 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |