Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: ui/android/delegated_frame_host_android.h

Issue 2388753003: Introduce cc::LocalFrameId and use in SurfaceFactory (Closed)
Patch Set: Fix exo_unittests Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; 84 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
85 cc::FrameSinkId registered_parent_frame_sink_id_; 85 cc::FrameSinkId registered_parent_frame_sink_id_;
86 ReturnResourcesCallback return_resources_callback_; 86 ReturnResourcesCallback return_resources_callback_;
87 87
88 std::unique_ptr<cc::SurfaceFactory> surface_factory_; 88 std::unique_ptr<cc::SurfaceFactory> surface_factory_;
89 89
90 struct FrameData { 90 struct FrameData {
91 FrameData(); 91 FrameData();
92 ~FrameData(); 92 ~FrameData();
93 93
94 cc::SurfaceId surface_id; 94 cc::LocalFrameId local_frame_id;
95 gfx::Size surface_size; 95 gfx::Size surface_size;
96 float top_controls_height; 96 float top_controls_height;
97 float top_controls_shown_ratio; 97 float top_controls_shown_ratio;
98 float bottom_controls_height; 98 float bottom_controls_height;
99 float bottom_controls_shown_ratio; 99 float bottom_controls_shown_ratio;
100 cc::Selection<gfx::SelectionBound> viewport_selection; 100 cc::Selection<gfx::SelectionBound> viewport_selection;
101 bool has_transparent_background; 101 bool has_transparent_background;
102 }; 102 };
103 std::unique_ptr<FrameData> current_frame_; 103 std::unique_ptr<FrameData> current_frame_;
104 104
105 scoped_refptr<cc::SurfaceLayer> content_layer_; 105 scoped_refptr<cc::SurfaceLayer> content_layer_;
106 106
107 scoped_refptr<cc::Layer> background_layer_; 107 scoped_refptr<cc::Layer> background_layer_;
108 108
109 gfx::Size container_size_in_dip_; 109 gfx::Size container_size_in_dip_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); 111 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid);
112 }; 112 };
113 113
114 } // namespace ui 114 } // namespace ui
115 115
116 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ 116 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698