| OLD | NEW |
| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/metrics/stats_counters.h" | 10 #include "base/metrics/stats_counters.h" |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 bool TestWebKitPlatformSupport::canAccelerate2dCanvas() { | 403 bool TestWebKitPlatformSupport::canAccelerate2dCanvas() { |
| 404 // We supply an OS-MESA based context for accelarated 2d | 404 // We supply an OS-MESA based context for accelarated 2d |
| 405 // canvas, which should always work. | 405 // canvas, which should always work. |
| 406 return true; | 406 return true; |
| 407 } | 407 } |
| 408 | 408 |
| 409 bool TestWebKitPlatformSupport::isThreadedCompositingEnabled() { | 409 bool TestWebKitPlatformSupport::isThreadedCompositingEnabled() { |
| 410 return threaded_compositing_enabled_; | 410 return threaded_compositing_enabled_; |
| 411 } | 411 } |
| 412 | 412 |
| 413 WebKit::WebCompositorSupport* |
| 414 TestWebKitPlatformSupport::compositorSupport() { |
| 415 return &compositor_support_; |
| 416 } |
| 417 |
| 413 double TestWebKitPlatformSupport::audioHardwareSampleRate() { | 418 double TestWebKitPlatformSupport::audioHardwareSampleRate() { |
| 414 return 44100.0; | 419 return 44100.0; |
| 415 } | 420 } |
| 416 | 421 |
| 417 size_t TestWebKitPlatformSupport::audioHardwareBufferSize() { | 422 size_t TestWebKitPlatformSupport::audioHardwareBufferSize() { |
| 418 return 128; | 423 return 128; |
| 419 } | 424 } |
| 420 | 425 |
| 421 WebKit::WebAudioDevice* TestWebKitPlatformSupport::createAudioDevice( | 426 WebKit::WebAudioDevice* TestWebKitPlatformSupport::createAudioDevice( |
| 422 size_t bufferSize, unsigned numberOfInputChannels, | 427 size_t bufferSize, unsigned numberOfInputChannels, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 return view.release(); | 549 return view.release(); |
| 545 } | 550 } |
| 546 | 551 |
| 547 WebKit::WebLayerTreeView* | 552 WebKit::WebLayerTreeView* |
| 548 TestWebKitPlatformSupport::createLayerTreeViewForTesting( | 553 TestWebKitPlatformSupport::createLayerTreeViewForTesting( |
| 549 TestViewType type) { | 554 TestViewType type) { |
| 550 DCHECK_EQ(TestViewTypeUnitTest, type); | 555 DCHECK_EQ(TestViewTypeUnitTest, type); |
| 551 return createLayerTreeViewForTesting(); | 556 return createLayerTreeViewForTesting(); |
| 552 } | 557 } |
| 553 | 558 |
| OLD | NEW |