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

Unified Diff: cc/ipc/compositor_frame_metadata_struct_traits.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 side-by-side diff with in-line comments
Download patch
Index: cc/ipc/compositor_frame_metadata_struct_traits.h
diff --git a/cc/ipc/compositor_frame_metadata_struct_traits.h b/cc/ipc/compositor_frame_metadata_struct_traits.h
index 2959ababfe84768bb6c13f21ca7a30e7778e25f6..56128ab02c3529531e73befe3a5130172e153800 100644
--- a/cc/ipc/compositor_frame_metadata_struct_traits.h
+++ b/cc/ipc/compositor_frame_metadata_struct_traits.h
@@ -61,11 +61,20 @@ struct StructTraits<cc::mojom::CompositorFrameMetadataDataView,
return metadata.may_contain_video;
}
+ static bool is_fullscreen(const cc::CompositorFrameMetadata& metadata) {
+ return metadata.is_fullscreen;
+ }
+
static bool is_resourceless_software_draw_with_scroll_or_animation(
const cc::CompositorFrameMetadata& metadata) {
return metadata.is_resourceless_software_draw_with_scroll_or_animation;
}
+ static gfx::Size device_viewport_size(
+ const cc::CompositorFrameMetadata& metadata) {
+ return metadata.device_viewport_size;
+ }
+
static float top_controls_height(
const cc::CompositorFrameMetadata& metadata) {
return metadata.top_controls_height;

Powered by Google App Engine
This is Rietveld 408576698