| 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 21 matching lines...) Expand all Loading... |
| 32 : public cc::SurfaceFactoryClient { | 32 : public cc::SurfaceFactoryClient { |
| 33 public: | 33 public: |
| 34 class Client { | 34 class Client { |
| 35 public: | 35 public: |
| 36 virtual void SetBeginFrameSource( | 36 virtual void SetBeginFrameSource( |
| 37 cc::BeginFrameSource* begin_frame_source) = 0; | 37 cc::BeginFrameSource* begin_frame_source) = 0; |
| 38 virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0; | 38 virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 DelegatedFrameHostAndroid(ViewAndroid* view, | 41 DelegatedFrameHostAndroid(ViewAndroid* view, |
| 42 cc::SurfaceManager* surface_manager, |
| 42 Client* client, | 43 Client* client, |
| 43 const cc::FrameSinkId& frame_sink_id); | 44 const cc::FrameSinkId& frame_sink_id); |
| 44 | 45 |
| 45 ~DelegatedFrameHostAndroid() override; | 46 ~DelegatedFrameHostAndroid() override; |
| 46 | 47 |
| 47 void SubmitCompositorFrame(cc::CompositorFrame frame, | 48 void SubmitCompositorFrame(cc::CompositorFrame frame, |
| 48 cc::SurfaceFactory::DrawCallback draw_callback); | 49 cc::SurfaceFactory::DrawCallback draw_callback); |
| 49 | 50 |
| 50 void DestroyDelegatedContent(); | 51 void DestroyDelegatedContent(); |
| 51 | 52 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 std::unique_ptr<FrameData> current_frame_; | 99 std::unique_ptr<FrameData> current_frame_; |
| 99 | 100 |
| 100 scoped_refptr<cc::SurfaceLayer> content_layer_; | 101 scoped_refptr<cc::SurfaceLayer> content_layer_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); | 103 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace ui | 106 } // namespace ui |
| 106 | 107 |
| 107 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 108 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
| OLD | NEW |