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

Side by Side Diff: webkit/support/web_layer_tree_view_impl_for_testing.cc

Issue 19267016: Add a flag to allow renderer to use software compositor when GL compositor doesn't work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/support/web_layer_tree_view_impl_for_testing.h ('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 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 "webkit/support/web_layer_tree_view_impl_for_testing.h" 5 #include "webkit/support/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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 void WebLayerTreeViewImplForTesting::renderingStats(WebRenderingStats&) const {} 151 void WebLayerTreeViewImplForTesting::renderingStats(WebRenderingStats&) const {}
152 152
153 void WebLayerTreeViewImplForTesting::Layout() { 153 void WebLayerTreeViewImplForTesting::Layout() {
154 } 154 }
155 155
156 void WebLayerTreeViewImplForTesting::ApplyScrollAndScale( 156 void WebLayerTreeViewImplForTesting::ApplyScrollAndScale(
157 gfx::Vector2d scroll_delta, 157 gfx::Vector2d scroll_delta,
158 float page_scale) {} 158 float page_scale) {}
159 159
160 scoped_ptr<cc::OutputSurface> 160 scoped_ptr<cc::OutputSurface>
161 WebLayerTreeViewImplForTesting::CreateOutputSurface() { 161 WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) {
162 scoped_ptr<cc::OutputSurface> surface; 162 scoped_ptr<cc::OutputSurface> surface;
163 scoped_ptr<WebGraphicsContext3D> context3d( 163 scoped_ptr<WebGraphicsContext3D> context3d(
164 new cc::FakeWebGraphicsContext3D); 164 new cc::FakeWebGraphicsContext3D);
165 surface.reset(new cc::OutputSurface(context3d.Pass())); 165 surface.reset(new cc::OutputSurface(context3d.Pass()));
166 return surface.Pass(); 166 return surface.Pass();
167 } 167 }
168 168
169 void WebLayerTreeViewImplForTesting::ScheduleComposite() { 169 void WebLayerTreeViewImplForTesting::ScheduleComposite() {
170 } 170 }
171 171
172 scoped_refptr<cc::ContextProvider> 172 scoped_refptr<cc::ContextProvider>
173 WebLayerTreeViewImplForTesting::OffscreenContextProviderForMainThread() { 173 WebLayerTreeViewImplForTesting::OffscreenContextProviderForMainThread() {
174 return webkit::gpu::TestContextProviderFactory::GetInstance()-> 174 return webkit::gpu::TestContextProviderFactory::GetInstance()->
175 OffscreenContextProviderForMainThread(); 175 OffscreenContextProviderForMainThread();
176 } 176 }
177 177
178 scoped_refptr<cc::ContextProvider> 178 scoped_refptr<cc::ContextProvider>
179 WebLayerTreeViewImplForTesting::OffscreenContextProviderForCompositorThread() { 179 WebLayerTreeViewImplForTesting::OffscreenContextProviderForCompositorThread() {
180 return webkit::gpu::TestContextProviderFactory::GetInstance()-> 180 return webkit::gpu::TestContextProviderFactory::GetInstance()->
181 OffscreenContextProviderForCompositorThread(); 181 OffscreenContextProviderForCompositorThread();
182 } 182 }
183 183
184 } // namespace webkit 184 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/support/web_layer_tree_view_impl_for_testing.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698