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

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

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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) 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; 349 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl;
350 return WebGraphicsContext3DInProcessCommandBufferImpl::CreateOffscreenContext( 350 return WebGraphicsContext3DInProcessCommandBufferImpl::CreateOffscreenContext(
351 attributes); 351 attributes);
352 } 352 }
353 353
354 WebKit::WebGraphicsContext3DProvider* TestWebKitPlatformSupport:: 354 WebKit::WebGraphicsContext3DProvider* TestWebKitPlatformSupport::
355 createSharedOffscreenGraphicsContext3DProvider() { 355 createSharedOffscreenGraphicsContext3DProvider() {
356 main_thread_contexts_ = 356 main_thread_contexts_ =
357 webkit::gpu::TestContextProviderFactory::GetInstance()-> 357 webkit::gpu::TestContextProviderFactory::GetInstance()->
358 OffscreenContextProviderForMainThread(); 358 OffscreenContextProviderForMainThread();
359 if (!main_thread_contexts_) 359 if (!main_thread_contexts_.get())
360 return NULL; 360 return NULL;
361 return new webkit::gpu::WebGraphicsContext3DProviderImpl( 361 return new webkit::gpu::WebGraphicsContext3DProviderImpl(
362 main_thread_contexts_); 362 main_thread_contexts_);
363 } 363 }
364 364
365 bool TestWebKitPlatformSupport::canAccelerate2dCanvas() { 365 bool TestWebKitPlatformSupport::canAccelerate2dCanvas() {
366 // We supply an OS-MESA based context for accelarated 2d 366 // We supply an OS-MESA based context for accelarated 2d
367 // canvas, which should always work. 367 // canvas, which should always work.
368 return true; 368 return true;
369 } 369 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 return view.release(); 511 return view.release();
512 } 512 }
513 513
514 WebKit::WebLayerTreeView* 514 WebKit::WebLayerTreeView*
515 TestWebKitPlatformSupport::createLayerTreeViewForTesting( 515 TestWebKitPlatformSupport::createLayerTreeViewForTesting(
516 TestViewType type) { 516 TestViewType type) {
517 DCHECK_EQ(TestViewTypeUnitTest, type); 517 DCHECK_EQ(TestViewTypeUnitTest, type);
518 return createLayerTreeViewForTesting(); 518 return createLayerTreeViewForTesting();
519 } 519 }
520 520
OLDNEW
« no previous file with comments | « webkit/renderer/media/webmediaplayer_params.cc ('k') | webkit/support/test_webmessageportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698