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

Side by Side Diff: cc/output/compositor_frame_metadata.h

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Evict frame instead of showing a black frame Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 30 matching lines...) Expand all
41 41
42 // These limits can be used together with the scroll/scale fields above to 42 // These limits can be used together with the scroll/scale fields above to
43 // determine if scrolling/scaling in a particular direction is possible. 43 // determine if scrolling/scaling in a particular direction is possible.
44 gfx::SizeF scrollable_viewport_size; 44 gfx::SizeF scrollable_viewport_size;
45 gfx::SizeF root_layer_size; 45 gfx::SizeF root_layer_size;
46 float min_page_scale_factor = 0.f; 46 float min_page_scale_factor = 0.f;
47 float max_page_scale_factor = 0.f; 47 float max_page_scale_factor = 0.f;
48 bool root_overflow_x_hidden = false; 48 bool root_overflow_x_hidden = false;
49 bool root_overflow_y_hidden = false; 49 bool root_overflow_y_hidden = false;
50 bool may_contain_video = false; 50 bool may_contain_video = false;
51 bool is_fullscreen = false;
52
53 gfx::Size device_viewport_size;
51 54
52 // WebView makes quality decisions for rastering resourceless software frames 55 // WebView makes quality decisions for rastering resourceless software frames
53 // based on information that a scroll or animation is active. 56 // based on information that a scroll or animation is active.
54 // TODO(aelias): Remove this and always enable filtering if there aren't apps 57 // TODO(aelias): Remove this and always enable filtering if there aren't apps
55 // depending on this anymore. 58 // depending on this anymore.
56 bool is_resourceless_software_draw_with_scroll_or_animation = false; 59 bool is_resourceless_software_draw_with_scroll_or_animation = false;
57 60
58 // Used to position the Android location top bar and page content, whose 61 // Used to position the Android location top bar and page content, whose
59 // precise position is computed by the renderer compositor. 62 // precise position is computed by the renderer compositor.
60 float top_controls_height = 0.f; 63 float top_controls_height = 0.f;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 uint32_t frame_token = 0; 120 uint32_t frame_token = 0;
118 121
119 private: 122 private:
120 CompositorFrameMetadata(const CompositorFrameMetadata& other); 123 CompositorFrameMetadata(const CompositorFrameMetadata& other);
121 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; 124 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete;
122 }; 125 };
123 126
124 } // namespace cc 127 } // namespace cc
125 128
126 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 129 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698