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

Side by Side Diff: cc/layers/scrollbar_layer_unittest.cc

Issue 2171143002: cc: Get rid of non-delegated rendering in most cc unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@killdirecttests
Patch Set: fakeoutputsurface: no-constructor 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 unified diff | Download patch
« no previous file with comments | « cc/layers/render_surface_unittest.cc ('k') | cc/layers/solid_color_layer_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <unordered_map> 7 #include <unordered_map>
8 8
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "cc/animation/animation_host.h" 10 #include "cc/animation/animation_host.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 std::unordered_map<UIResourceId, UIResourceBitmap>; 92 std::unordered_map<UIResourceId, UIResourceBitmap>;
93 UIResourceBitmapMap ui_resource_bitmap_map_; 93 UIResourceBitmapMap ui_resource_bitmap_map_;
94 94
95 int next_id_; 95 int next_id_;
96 int total_ui_resource_created_; 96 int total_ui_resource_created_;
97 int total_ui_resource_deleted_; 97 int total_ui_resource_deleted_;
98 }; 98 };
99 99
100 class ScrollbarLayerTest : public testing::Test { 100 class ScrollbarLayerTest : public testing::Test {
101 public: 101 public:
102 ScrollbarLayerTest() : fake_client_(FakeLayerTreeHostClient::DIRECT_3D) { 102 ScrollbarLayerTest() {
103 layer_tree_settings_.single_thread_proxy_scheduler = false; 103 layer_tree_settings_.single_thread_proxy_scheduler = false;
104 layer_tree_settings_.use_zero_copy = true; 104 layer_tree_settings_.use_zero_copy = true;
105 layer_tree_settings_.scrollbar_animator = LayerTreeSettings::LINEAR_FADE; 105 layer_tree_settings_.scrollbar_animator = LayerTreeSettings::LINEAR_FADE;
106 layer_tree_settings_.scrollbar_fade_delay_ms = 20; 106 layer_tree_settings_.scrollbar_fade_delay_ms = 20;
107 layer_tree_settings_.scrollbar_fade_duration_ms = 20; 107 layer_tree_settings_.scrollbar_fade_duration_ms = 20;
108 108
109 scrollbar_layer_id_ = -1; 109 scrollbar_layer_id_ = -1;
110 110
111 LayerTreeHost::InitParams params; 111 LayerTreeHost::InitParams params;
112 params.client = &fake_client_; 112 params.client = &fake_client_;
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f); 1148 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f);
1149 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f); 1149 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f);
1150 1150
1151 // Horizontal Scrollbars. 1151 // Horizontal Scrollbars.
1152 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f); 1152 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f);
1153 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f); 1153 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f);
1154 } 1154 }
1155 1155
1156 } // namespace 1156 } // namespace
1157 } // namespace cc 1157 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/render_surface_unittest.cc ('k') | cc/layers/solid_color_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698