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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 838603002: Remove support for custom overscroll background (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (for real) Created 5 years, 11 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/trees/layer_tree_host_impl.cc ('k') | content/app/resources/content_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index fb2fdb64001161970d4c9716820f2930444d9a88..09a165b2dab9fd32de57ec33895c2cf75b86e655 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -4722,49 +4722,6 @@ TEST_F(LayerTreeHostImplViewportCoveredTest, ViewportCoveredScaled) {
TestLayerIsLargerThanViewport();
}
-TEST_F(LayerTreeHostImplViewportCoveredTest, ViewportCoveredOverhangBitmap) {
- viewport_size_ = gfx::Size(1000, 1000);
-
- bool always_draw = false;
- CreateHostImpl(DefaultSettings(), CreateFakeOutputSurface(always_draw));
-
- host_impl_->SetViewportSize(DipSizeToPixelSize(viewport_size_));
- SetupActiveTreeLayers();
-
- // Specify an overhang bitmap to use.
- bool is_opaque = false;
- UIResourceBitmap ui_resource_bitmap(gfx::Size(2, 2), is_opaque);
- ui_resource_bitmap.SetWrapMode(UIResourceBitmap::REPEAT);
- UIResourceId ui_resource_id = 12345;
- host_impl_->CreateUIResource(ui_resource_id, ui_resource_bitmap);
- host_impl_->SetOverhangUIResource(ui_resource_id, gfx::Size(32, 32));
- set_gutter_quad_material(DrawQuad::TEXTURE_CONTENT);
- set_gutter_texture_size(gfx::Size(32, 32));
-
- TestLayerCoversFullViewport();
- TestEmptyLayer();
- TestLayerInMiddleOfViewport();
- TestLayerIsLargerThanViewport();
-
- // Change the resource size.
- host_impl_->SetOverhangUIResource(ui_resource_id, gfx::Size(128, 16));
- set_gutter_texture_size(gfx::Size(128, 16));
-
- TestLayerCoversFullViewport();
- TestEmptyLayer();
- TestLayerInMiddleOfViewport();
- TestLayerIsLargerThanViewport();
-
- // Change the device scale factor
- host_impl_->SetDeviceScaleFactor(2.f);
- host_impl_->SetViewportSize(DipSizeToPixelSize(viewport_size_));
-
- TestLayerCoversFullViewport();
- TestEmptyLayer();
- TestLayerInMiddleOfViewport();
- TestLayerIsLargerThanViewport();
-}
-
TEST_F(LayerTreeHostImplViewportCoveredTest, ActiveTreeGrowViewportInvalid) {
viewport_size_ = gfx::Size(1000, 1000);
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | content/app/resources/content_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698