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

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

Issue 14619019: Move compositor support out of base WebKitPlatformSupport into renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 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') | webkit/support/webkit_support.gypi » ('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 (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
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
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
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | webkit/support/webkit_support.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698