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

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

Issue 2710593003: cc: Fix const value pattern by replacing it by non-const or reference. (Closed)
Patch Set: update rebase Created 3 years, 10 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/tiles/software_image_decode_cache.cc ('k') | no next file » | 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/location.h" 7 #include "base/location.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 void BeginTest() override { 1858 void BeginTest() override {
1859 DCHECK(HasImplThread()); 1859 DCHECK(HasImplThread());
1860 ImplThreadTaskRunner()->PostTask( 1860 ImplThreadTaskRunner()->PostTask(
1861 FROM_HERE, 1861 FROM_HERE,
1862 base::Bind(&LayerTreeHostScrollTestElasticOverscroll::BindInputHandler, 1862 base::Bind(&LayerTreeHostScrollTestElasticOverscroll::BindInputHandler,
1863 base::Unretained(this), 1863 base::Unretained(this),
1864 layer_tree_host()->GetInputHandler())); 1864 layer_tree_host()->GetInputHandler()));
1865 PostSetNeedsCommitToMainThread(); 1865 PostSetNeedsCommitToMainThread();
1866 } 1866 }
1867 1867
1868 void BindInputHandler(const base::WeakPtr<InputHandler> input_handler) { 1868 void BindInputHandler(base::WeakPtr<InputHandler> input_handler) {
1869 DCHECK(task_runner_provider()->IsImplThread()); 1869 DCHECK(task_runner_provider()->IsImplThread());
1870 input_handler->BindToClient(&input_handler_client_); 1870 input_handler->BindToClient(&input_handler_client_);
1871 scroll_elasticity_helper_ = input_handler->CreateScrollElasticityHelper(); 1871 scroll_elasticity_helper_ = input_handler->CreateScrollElasticityHelper();
1872 DCHECK(scroll_elasticity_helper_); 1872 DCHECK(scroll_elasticity_helper_);
1873 } 1873 }
1874 1874
1875 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 1875 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
1876 const gfx::Vector2dF& outer_delta, 1876 const gfx::Vector2dF& outer_delta,
1877 const gfx::Vector2dF& elastic_overscroll_delta, 1877 const gfx::Vector2dF& elastic_overscroll_delta,
1878 float scale, 1878 float scale,
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2065 private: 2065 private:
2066 gfx::ScrollOffset initial_scroll_; 2066 gfx::ScrollOffset initial_scroll_;
2067 gfx::ScrollOffset second_scroll_; 2067 gfx::ScrollOffset second_scroll_;
2068 gfx::Vector2dF scroll_amount_; 2068 gfx::Vector2dF scroll_amount_;
2069 }; 2069 };
2070 2070
2071 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostScrollTestPropertyTreeUpdate); 2071 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostScrollTestPropertyTreeUpdate);
2072 2072
2073 } // namespace 2073 } // namespace
2074 } // namespace cc 2074 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/software_image_decode_cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698