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

Side by Side Diff: cc/test/pixel_test.cc

Issue 334133002: cc: Support on demand raster with ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests Created 6 years, 6 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
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 "cc/test/pixel_test.h" 5 #include "cc/test/pixel_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 void PixelTest::ForceDeviceClip(const gfx::Rect& clip) { 140 void PixelTest::ForceDeviceClip(const gfx::Rect& clip) {
141 external_device_clip_rect_ = clip; 141 external_device_clip_rect_ = clip;
142 } 142 }
143 143
144 void PixelTest::EnableExternalStencilTest() { 144 void PixelTest::EnableExternalStencilTest() {
145 static_cast<PixelTestOutputSurface*>(output_surface_.get()) 145 static_cast<PixelTestOutputSurface*>(output_surface_.get())
146 ->set_has_external_stencil_test(true); 146 ->set_has_external_stencil_test(true);
147 } 147 }
148 148
149 bool PixelTest::UseTaskGraphRunnerForOnDemandRaster() {
150 return true;
151 }
152
149 void PixelTest::SetUpSoftwareRenderer() { 153 void PixelTest::SetUpSoftwareRenderer() {
150 scoped_ptr<SoftwareOutputDevice> device(new PixelTestSoftwareOutputDevice()); 154 scoped_ptr<SoftwareOutputDevice> device(new PixelTestSoftwareOutputDevice());
151 output_surface_.reset(new PixelTestOutputSurface(device.Pass())); 155 output_surface_.reset(new PixelTestOutputSurface(device.Pass()));
152 output_surface_->BindToClient(output_surface_client_.get()); 156 output_surface_->BindToClient(output_surface_client_.get());
153 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); 157 shared_bitmap_manager_.reset(new TestSharedBitmapManager());
154 resource_provider_ = ResourceProvider::Create( 158 resource_provider_ = ResourceProvider::Create(
155 output_surface_.get(), shared_bitmap_manager_.get(), 0, false, 1, false); 159 output_surface_.get(), shared_bitmap_manager_.get(), 0, false, 1, false);
156 renderer_ = 160 renderer_ =
157 SoftwareRenderer::Create( 161 SoftwareRenderer::Create(
158 this, &settings_, output_surface_.get(), resource_provider_.get()) 162 this, &settings_, output_surface_.get(), resource_provider_.get())
159 .PassAs<DirectRenderer>(); 163 .PassAs<DirectRenderer>();
160 } 164 }
161 165
162 } // namespace cc 166 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698