Chromium Code Reviews| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 void RegisterFrameSinkHierarchy(const cc::FrameSinkId& parent_id); | 69 void RegisterFrameSinkHierarchy(const cc::FrameSinkId& parent_id); |
| 70 void UnregisterFrameSinkHierarchy(); | 70 void UnregisterFrameSinkHierarchy(); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 // cc::SurfaceFactoryClient implementation. | 73 // cc::SurfaceFactoryClient implementation. |
| 74 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 74 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 75 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 75 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 76 | 76 |
| 77 void UpdateBackgroundLayer(); | 77 void UpdateBackgroundLayer(); |
| 78 | 78 |
| 79 cc::FrameSinkId frame_sink_id_; | |
|
sky
2016/10/03 19:18:25
And here.
Fady Samuel
2016/10/03 19:45:29
Done.
| |
| 80 | |
| 79 ViewAndroid* view_; | 81 ViewAndroid* view_; |
| 80 | 82 |
| 81 cc::SurfaceManager* surface_manager_; | 83 cc::SurfaceManager* surface_manager_; |
| 82 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 84 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
| 83 cc::FrameSinkId registered_parent_frame_sink_id_; | 85 cc::FrameSinkId registered_parent_frame_sink_id_; |
| 84 ReturnResourcesCallback return_resources_callback_; | 86 ReturnResourcesCallback return_resources_callback_; |
| 85 | 87 |
| 86 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 88 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
| 87 | 89 |
| 88 struct FrameData { | 90 struct FrameData { |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 105 scoped_refptr<cc::Layer> background_layer_; | 107 scoped_refptr<cc::Layer> background_layer_; |
| 106 | 108 |
| 107 gfx::Size container_size_in_dip_; | 109 gfx::Size container_size_in_dip_; |
| 108 | 110 |
| 109 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); | 111 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); |
| 110 }; | 112 }; |
| 111 | 113 |
| 112 } // namespace ui | 114 } // namespace ui |
| 113 | 115 |
| 114 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 116 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
| OLD | NEW |