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

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

Issue 889063002: (not for commit) Create 2nd ContextProvider for Ganesh rasterization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « content/renderer/render_widget.cc ('k') | ui/compositor/test/in_process_context_factory.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 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( 151 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas(
152 const gfx::Vector2d& scroll_delta, 152 const gfx::Vector2d& scroll_delta,
153 float page_scale, 153 float page_scale,
154 float top_controls_delta) {} 154 float top_controls_delta) {}
155 155
156 void WebLayerTreeViewImplForTesting::RequestNewOutputSurface() { 156 void WebLayerTreeViewImplForTesting::RequestNewOutputSurface() {
157 bool flipped_output_surface = false; 157 bool flipped_output_surface = false;
158 layer_tree_host_->SetOutputSurface( 158 layer_tree_host_->SetOutputSurface(
159 make_scoped_ptr(new cc::PixelTestOutputSurface( 159 make_scoped_ptr(new cc::PixelTestOutputSurface(
160 cc::TestContextProvider::Create(), flipped_output_surface))); 160 cc::TestContextProvider::Create(), nullptr, flipped_output_surface)));
161 } 161 }
162 162
163 void WebLayerTreeViewImplForTesting::DidFailToInitializeOutputSurface() { 163 void WebLayerTreeViewImplForTesting::DidFailToInitializeOutputSurface() {
164 RequestNewOutputSurface(); 164 RequestNewOutputSurface();
165 } 165 }
166 166
167 void WebLayerTreeViewImplForTesting::registerViewportLayers( 167 void WebLayerTreeViewImplForTesting::registerViewportLayers(
168 const blink::WebLayer* overscrollElasticityLayer, 168 const blink::WebLayer* overscrollElasticityLayer,
169 const blink::WebLayer* pageScaleLayer, 169 const blink::WebLayer* pageScaleLayer,
170 const blink::WebLayer* innerViewportScrollLayer, 170 const blink::WebLayer* innerViewportScrollLayer,
(...skipping 25 matching lines...) Expand all
196 196
197 void WebLayerTreeViewImplForTesting::registerSelection( 197 void WebLayerTreeViewImplForTesting::registerSelection(
198 const blink::WebSelectionBound& start, 198 const blink::WebSelectionBound& start,
199 const blink::WebSelectionBound& end) { 199 const blink::WebSelectionBound& end) {
200 } 200 }
201 201
202 void WebLayerTreeViewImplForTesting::clearSelection() { 202 void WebLayerTreeViewImplForTesting::clearSelection() {
203 } 203 }
204 204
205 } // namespace content 205 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698