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

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

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/test/pixel_test.h ('k') | cc/test/test_in_process_context_provider.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 "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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 shared_bitmap_manager_.get(), 137 shared_bitmap_manager_.get(),
138 gpu_memory_buffer_manager_.get(), 138 gpu_memory_buffer_manager_.get(),
139 main_thread_task_runner_.get(), 139 main_thread_task_runner_.get(),
140 0, 140 0,
141 false, 141 false,
142 1); 142 1);
143 143
144 texture_mailbox_deleter_ = make_scoped_ptr( 144 texture_mailbox_deleter_ = make_scoped_ptr(
145 new TextureMailboxDeleter(base::MessageLoopProxy::current())); 145 new TextureMailboxDeleter(base::MessageLoopProxy::current()));
146 146
147 renderer_ = GLRenderer::Create(this, 147 renderer_ = GLRenderer::Create(
148 &settings_, 148 this, &settings_.renderer_settings, output_surface_.get(),
149 output_surface_.get(), 149 resource_provider_.get(), texture_mailbox_deleter_.get(), 0);
150 resource_provider_.get(),
151 texture_mailbox_deleter_.get(),
152 0);
153 } 150 }
154 151
155 void PixelTest::ForceExpandedViewport(const gfx::Size& surface_expansion) { 152 void PixelTest::ForceExpandedViewport(const gfx::Size& surface_expansion) {
156 static_cast<PixelTestOutputSurface*>(output_surface_.get()) 153 static_cast<PixelTestOutputSurface*>(output_surface_.get())
157 ->set_surface_expansion_size(surface_expansion); 154 ->set_surface_expansion_size(surface_expansion);
158 SoftwareOutputDevice* device = output_surface_->software_device(); 155 SoftwareOutputDevice* device = output_surface_->software_device();
159 if (device) { 156 if (device) {
160 static_cast<PixelTestSoftwareOutputDevice*>(device) 157 static_cast<PixelTestSoftwareOutputDevice*>(device)
161 ->set_surface_expansion_size(surface_expansion); 158 ->set_surface_expansion_size(surface_expansion);
162 } 159 }
(...skipping 18 matching lines...) Expand all
181 output_surface_->BindToClient(output_surface_client_.get()); 178 output_surface_->BindToClient(output_surface_client_.get());
182 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); 179 shared_bitmap_manager_.reset(new TestSharedBitmapManager());
183 resource_provider_ = 180 resource_provider_ =
184 ResourceProvider::Create(output_surface_.get(), 181 ResourceProvider::Create(output_surface_.get(),
185 shared_bitmap_manager_.get(), 182 shared_bitmap_manager_.get(),
186 gpu_memory_buffer_manager_.get(), 183 gpu_memory_buffer_manager_.get(),
187 main_thread_task_runner_.get(), 184 main_thread_task_runner_.get(),
188 0, 185 0,
189 false, 186 false,
190 1); 187 1);
191 renderer_ = SoftwareRenderer::Create( 188 renderer_ =
192 this, &settings_, output_surface_.get(), resource_provider_.get()); 189 SoftwareRenderer::Create(this, &settings_.renderer_settings,
190 output_surface_.get(), resource_provider_.get());
193 } 191 }
194 192
195 } // namespace cc 193 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/pixel_test.h ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698