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

Unified Diff: cc/layers/scrollbar_layer_unittest.cc

Issue 2231233002: cc: Remove the lie of "DirectRenderer" in LayerTreeTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no-ltt-delegating: ccpt Created 4 years, 4 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 | « no previous file | cc/layers/texture_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/scrollbar_layer_unittest.cc
diff --git a/cc/layers/scrollbar_layer_unittest.cc b/cc/layers/scrollbar_layer_unittest.cc
index bc5f50eae83706754cf9e1e03c6c4582bc59cf54..d44865c90caecfa96891e3f7e63b8075b6001272 100644
--- a/cc/layers/scrollbar_layer_unittest.cc
+++ b/cc/layers/scrollbar_layer_unittest.cc
@@ -738,9 +738,9 @@ TEST_F(ScrollbarLayerSolidColorThumbTest, SolidColorThumbVerticalAdjust) {
vertical_scrollbar_layer_->ComputeThumbQuadRect());
}
-class ScrollbarLayerTestMaxTextureSize : public LayerTreeTest {
+class ScrollbarLayerTestWithFixedScrollbarBounds : public LayerTreeTest {
public:
- ScrollbarLayerTestMaxTextureSize() {}
+ ScrollbarLayerTestWithFixedScrollbarBounds() {}
void SetScrollbarBounds(const gfx::Size& bounds) { bounds_ = bounds; }
@@ -783,22 +783,13 @@ class ScrollbarLayerTestMaxTextureSize : public LayerTreeTest {
gfx::Size bounds_;
};
-TEST_F(ScrollbarLayerTestMaxTextureSize, DirectRenderer) {
+TEST_F(ScrollbarLayerTestWithFixedScrollbarBounds, MaxTextureSize) {
std::unique_ptr<TestWebGraphicsContext3D> context =
TestWebGraphicsContext3D::Create();
int max_size = 0;
context->getIntegerv(GL_MAX_TEXTURE_SIZE, &max_size);
SetScrollbarBounds(gfx::Size(max_size + 100, max_size + 100));
- RunTest(CompositorMode::THREADED, false);
-}
-
-TEST_F(ScrollbarLayerTestMaxTextureSize, DelegatingRenderer) {
- std::unique_ptr<TestWebGraphicsContext3D> context =
- TestWebGraphicsContext3D::Create();
- int max_size = 0;
- context->getIntegerv(GL_MAX_TEXTURE_SIZE, &max_size);
- SetScrollbarBounds(gfx::Size(max_size + 100, max_size + 100));
- RunTest(CompositorMode::THREADED, true);
+ RunTest(CompositorMode::THREADED);
}
class ScrollbarLayerTestResourceCreationAndRelease : public ScrollbarLayerTest {
« no previous file with comments | « no previous file | cc/layers/texture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698