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

Side by Side Diff: content/test/web_layer_tree_view_impl_for_testing.cc

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/test/web_layer_tree_view_impl_for_testing.h" 5 #include "content/test/web_layer_tree_view_impl_for_testing.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "cc/base/switches.h" 10 #include "cc/base/switches.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) { 141 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) {
142 layer_tree_host_->SetDeferCommits(defer_commits); 142 layer_tree_host_->SetDeferCommits(defer_commits);
143 } 143 }
144 144
145 void WebLayerTreeViewImplForTesting::renderingStats(WebRenderingStats&) const {} 145 void WebLayerTreeViewImplForTesting::renderingStats(WebRenderingStats&) const {}
146 146
147 void WebLayerTreeViewImplForTesting::Layout() { 147 void WebLayerTreeViewImplForTesting::Layout() {
148 } 148 }
149 149
150 void WebLayerTreeViewImplForTesting::ApplyScrollAndScale( 150 void WebLayerTreeViewImplForTesting::ApplyScrollAndScale(
151 gfx::Vector2d scroll_delta, 151 const gfx::Vector2d& scroll_delta,
152 float page_scale) {} 152 float page_scale) {}
153 153
154 scoped_ptr<cc::OutputSurface> 154 scoped_ptr<cc::OutputSurface>
155 WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) { 155 WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) {
156 return make_scoped_ptr( 156 return make_scoped_ptr(
157 new cc::OutputSurface(cc::TestContextProvider::Create())); 157 new cc::OutputSurface(cc::TestContextProvider::Create()));
158 } 158 }
159 159
160 scoped_refptr<cc::ContextProvider> 160 scoped_refptr<cc::ContextProvider>
161 WebLayerTreeViewImplForTesting::OffscreenContextProvider() { 161 WebLayerTreeViewImplForTesting::OffscreenContextProvider() {
162 // Unit tests only run in single threaded mode. 162 // Unit tests only run in single threaded mode.
163 return webkit::gpu::TestContextProviderFactory::GetInstance()-> 163 return webkit::gpu::TestContextProviderFactory::GetInstance()->
164 OffscreenContextProviderForMainThread(); 164 OffscreenContextProviderForMainThread();
165 } 165 }
166 166
167 } // namespace webkit 167 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698