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

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

Issue 9655017: Implement WebKitPlatformSupport::canAccelerate2dCanvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move canAccelerate.. call next to createOffscreenGraphicsContext3D call Created 8 years, 9 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/test_webkit_platform_support.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl()); 394 webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl());
395 if (!context->Initialize(attributes, NULL)) 395 if (!context->Initialize(attributes, NULL))
396 return NULL; 396 return NULL;
397 return context.release(); 397 return context.release();
398 } 398 }
399 } 399 }
400 NOTREACHED(); 400 NOTREACHED();
401 return NULL; 401 return NULL;
402 } 402 }
403 403
404 bool TestWebKitPlatformSupport::canAccelerate2dCanvas() {
405 // We supply an OS-MESA based context for accelarated 2d
406 // canvas, which should always work.
407 return true;
408 }
409
404 double TestWebKitPlatformSupport::audioHardwareSampleRate() { 410 double TestWebKitPlatformSupport::audioHardwareSampleRate() {
405 return 44100.0; 411 return 44100.0;
406 } 412 }
407 413
408 size_t TestWebKitPlatformSupport::audioHardwareBufferSize() { 414 size_t TestWebKitPlatformSupport::audioHardwareBufferSize() {
409 return 128; 415 return 128;
410 } 416 }
411 417
412 WebKit::WebAudioDevice* TestWebKitPlatformSupport::createAudioDevice( 418 WebKit::WebAudioDevice* TestWebKitPlatformSupport::createAudioDevice(
413 size_t bufferSize, unsigned numberOfChannels, double sampleRate, 419 size_t bufferSize, unsigned numberOfChannels, double sampleRate,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 457 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
452 return SimpleResourceLoaderBridge::Create(request_info); 458 return SimpleResourceLoaderBridge::Create(request_info);
453 } 459 }
454 460
455 webkit_glue::WebSocketStreamHandleBridge* 461 webkit_glue::WebSocketStreamHandleBridge*
456 TestWebKitPlatformSupport::CreateWebSocketBridge( 462 TestWebKitPlatformSupport::CreateWebSocketBridge(
457 WebKit::WebSocketStreamHandle* handle, 463 WebKit::WebSocketStreamHandle* handle,
458 webkit_glue::WebSocketStreamHandleDelegate* delegate) { 464 webkit_glue::WebSocketStreamHandleDelegate* delegate) {
459 return SimpleSocketStreamBridge::Create(handle, delegate); 465 return SimpleSocketStreamBridge::Create(handle, delegate);
460 } 466 }
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698