| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 5 #ifndef UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
| 6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 public: | 34 public: |
| 35 class Client { | 35 class Client { |
| 36 public: | 36 public: |
| 37 virtual void SetBeginFrameSource( | 37 virtual void SetBeginFrameSource( |
| 38 cc::BeginFrameSource* begin_frame_source) = 0; | 38 cc::BeginFrameSource* begin_frame_source) = 0; |
| 39 virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0; | 39 virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 DelegatedFrameHostAndroid(ViewAndroid* view, | 42 DelegatedFrameHostAndroid(ViewAndroid* view, |
| 43 SkColor background_color, | 43 SkColor background_color, |
| 44 Client* client); | 44 Client* client, |
| 45 const cc::FrameSinkId& frame_sink_id); |
| 45 | 46 |
| 46 ~DelegatedFrameHostAndroid() override; | 47 ~DelegatedFrameHostAndroid() override; |
| 47 | 48 |
| 48 void SubmitCompositorFrame(cc::CompositorFrame frame, | 49 void SubmitCompositorFrame(cc::CompositorFrame frame, |
| 49 cc::SurfaceFactory::DrawCallback draw_callback); | 50 cc::SurfaceFactory::DrawCallback draw_callback); |
| 50 | 51 |
| 51 void DestroyDelegatedContent(); | 52 void DestroyDelegatedContent(); |
| 52 | 53 |
| 53 bool HasDelegatedContent() const; | 54 bool HasDelegatedContent() const; |
| 54 | 55 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 scoped_refptr<cc::Layer> background_layer_; | 110 scoped_refptr<cc::Layer> background_layer_; |
| 110 | 111 |
| 111 gfx::Size container_size_in_dip_; | 112 gfx::Size container_size_in_dip_; |
| 112 | 113 |
| 113 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); | 114 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 } // namespace ui | 117 } // namespace ui |
| 117 | 118 |
| 118 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 119 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
| OLD | NEW |