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

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

Issue 8301019: Allow specification of the share group in WebGraphicsContext3DInProcessImpl (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 2 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/test_webkit_platform_support.h" 5 #include "webkit/support/test_webkit_platform_support.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/metrics/stats_counters.h" 8 #include "base/metrics/stats_counters.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 WebKit::WebSharedWorkerRepository* 366 WebKit::WebSharedWorkerRepository*
367 TestWebKitPlatformSupport::sharedWorkerRepository() { 367 TestWebKitPlatformSupport::sharedWorkerRepository() {
368 return NULL; 368 return NULL;
369 } 369 }
370 370
371 WebKit::WebGraphicsContext3D* 371 WebKit::WebGraphicsContext3D*
372 TestWebKitPlatformSupport::createGraphicsContext3D() { 372 TestWebKitPlatformSupport::createGraphicsContext3D() {
373 switch (webkit_support::GetGraphicsContext3DImplementation()) { 373 switch (webkit_support::GetGraphicsContext3DImplementation()) {
374 case webkit_support::IN_PROCESS: 374 case webkit_support::IN_PROCESS:
375 return new webkit::gpu::WebGraphicsContext3DInProcessImpl( 375 return new webkit::gpu::WebGraphicsContext3DInProcessImpl(
376 gfx::kNullPluginWindow); 376 gfx::kNullPluginWindow, NULL);
377 case webkit_support::IN_PROCESS_COMMAND_BUFFER: 377 case webkit_support::IN_PROCESS_COMMAND_BUFFER:
378 return new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl(); 378 return new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl();
379 default: 379 default:
380 CHECK(false) << "Unknown GraphicsContext3D Implementation"; 380 CHECK(false) << "Unknown GraphicsContext3D Implementation";
381 return NULL; 381 return NULL;
382 } 382 }
383 } 383 }
384 384
385 double TestWebKitPlatformSupport::audioHardwareSampleRate() { 385 double TestWebKitPlatformSupport::audioHardwareSampleRate() {
386 return 44100.0; 386 return 44100.0;
387 } 387 }
388 388
389 size_t TestWebKitPlatformSupport::audioHardwareBufferSize() { 389 size_t TestWebKitPlatformSupport::audioHardwareBufferSize() {
390 return 128; 390 return 128;
391 } 391 }
392 392
393 WebKit::WebAudioDevice* TestWebKitPlatformSupport::createAudioDevice( 393 WebKit::WebAudioDevice* TestWebKitPlatformSupport::createAudioDevice(
394 size_t bufferSize, unsigned numberOfChannels, double sampleRate, 394 size_t bufferSize, unsigned numberOfChannels, double sampleRate,
395 WebKit::WebAudioDevice::RenderCallback*) { 395 WebKit::WebAudioDevice::RenderCallback*) {
396 return new WebAudioDeviceMock(sampleRate); 396 return new WebAudioDeviceMock(sampleRate);
397 } 397 }
OLDNEW
« no previous file with comments | « webkit/gpu/webgraphicscontext3d_in_process_impl.cc ('k') | webkit/tools/test_shell/test_shell_webkit_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698