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

Side by Side Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest_proxy.cc ('k') | cc/trees/layer_tree_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 "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include "base/memory/weak_ptr.h" 7 #include "base/memory/weak_ptr.h"
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "cc/layers/layer_impl.h" 9 #include "cc/layers/layer_impl.h"
10 #include "cc/layers/picture_layer.h" 10 #include "cc/layers/picture_layer.h"
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 if (!task_runner_->BelongsToCurrentThread()) 1099 if (!task_runner_->BelongsToCurrentThread())
1100 ADD_FAILURE() << "Animate called on wrong thread"; 1100 ADD_FAILURE() << "Animate called on wrong thread";
1101 } 1101 }
1102 1102
1103 void MainThreadHasStoppedFlinging() override { 1103 void MainThreadHasStoppedFlinging() override {
1104 if (!task_runner_->BelongsToCurrentThread()) 1104 if (!task_runner_->BelongsToCurrentThread())
1105 ADD_FAILURE() << "MainThreadHasStoppedFlinging called on wrong thread"; 1105 ADD_FAILURE() << "MainThreadHasStoppedFlinging called on wrong thread";
1106 *received_stop_flinging_ = true; 1106 *received_stop_flinging_ = true;
1107 } 1107 }
1108 1108
1109 void ReconcileElasticOverscrollAndRootScroll() override {
1110 if (!task_runner_->BelongsToCurrentThread()) {
1111 ADD_FAILURE() << "ReconcileElasticOverscrollAndRootScroll called on "
1112 << "wrong thread";
1113 }
1114 }
1115
1109 private: 1116 private:
1110 base::SingleThreadTaskRunner* task_runner_; 1117 base::SingleThreadTaskRunner* task_runner_;
1111 bool* received_stop_flinging_; 1118 bool* received_stop_flinging_;
1112 }; 1119 };
1113 1120
1114 void BindInputHandlerOnCompositorThread( 1121 void BindInputHandlerOnCompositorThread(
1115 const base::WeakPtr<InputHandler>& input_handler, 1122 const base::WeakPtr<InputHandler>& input_handler,
1116 ThreadCheckingInputHandlerClient* client) { 1123 ThreadCheckingInputHandlerClient* client) {
1117 input_handler->BindToClient(client); 1124 input_handler->BindToClient(client);
1118 } 1125 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 RunTest(true, false, true); 1246 RunTest(true, false, true);
1240 } 1247 }
1241 1248
1242 TEST_F(LayerTreeHostScrollTestLayerStructureChange, ScrollDestroyWholeTree) { 1249 TEST_F(LayerTreeHostScrollTestLayerStructureChange, ScrollDestroyWholeTree) {
1243 scroll_destroy_whole_tree_ = true; 1250 scroll_destroy_whole_tree_ = true;
1244 RunTest(true, false, true); 1251 RunTest(true, false, true);
1245 } 1252 }
1246 1253
1247 } // namespace 1254 } // namespace
1248 } // namespace cc 1255 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_proxy.cc ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698