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

Unified Diff: cc/ipc/struct_traits_unittest.cc

Issue 2128113002: Use a cc::Display for WebView resourceless software draws. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displaywebview: mojom Created 4 years, 5 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
« no previous file with comments | « cc/ipc/compositor_frame_metadata_struct_traits.cc ('k') | cc/output/compositor_frame_metadata.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/struct_traits_unittest.cc
diff --git a/cc/ipc/struct_traits_unittest.cc b/cc/ipc/struct_traits_unittest.cc
index 248ea4c2d5bb7e3a5461d5b8c3a1302cbb0838c2..f74f10ad7622a8353f3addf83f293bcfc1fa4da8 100644
--- a/cc/ipc/struct_traits_unittest.cc
+++ b/cc/ipc/struct_traits_unittest.cc
@@ -267,6 +267,7 @@ TEST_F(StructTraitsTest, CompositorFrameMetadata) {
const float max_page_scale_factor = 4.6f;
const bool root_overflow_x_hidden = true;
const bool root_overflow_y_hidden = true;
+ const bool is_resourceless_software_draw_with_scroll_or_animation = true;
const gfx::Vector2dF location_bar_offset(1234.5f, 5432.1f);
const gfx::Vector2dF location_bar_content_translation(1234.5f, 5432.1f);
const uint32_t root_background_color = 1337;
@@ -300,6 +301,8 @@ TEST_F(StructTraitsTest, CompositorFrameMetadata) {
input.max_page_scale_factor = max_page_scale_factor;
input.root_overflow_x_hidden = root_overflow_x_hidden;
input.root_overflow_y_hidden = root_overflow_y_hidden;
+ input.is_resourceless_software_draw_with_scroll_or_animation =
+ is_resourceless_software_draw_with_scroll_or_animation;
input.location_bar_offset = location_bar_offset;
input.location_bar_content_translation = location_bar_content_translation;
input.root_background_color = root_background_color;
@@ -320,6 +323,8 @@ TEST_F(StructTraitsTest, CompositorFrameMetadata) {
EXPECT_EQ(max_page_scale_factor, output.max_page_scale_factor);
EXPECT_EQ(root_overflow_x_hidden, output.root_overflow_x_hidden);
EXPECT_EQ(root_overflow_y_hidden, output.root_overflow_y_hidden);
+ EXPECT_EQ(is_resourceless_software_draw_with_scroll_or_animation,
+ output.is_resourceless_software_draw_with_scroll_or_animation);
EXPECT_EQ(location_bar_offset, output.location_bar_offset);
EXPECT_EQ(location_bar_content_translation,
output.location_bar_content_translation);
« no previous file with comments | « cc/ipc/compositor_frame_metadata_struct_traits.cc ('k') | cc/output/compositor_frame_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698