| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 return active_theme_engine_; | 369 return active_theme_engine_; |
| 370 } | 370 } |
| 371 #endif | 371 #endif |
| 372 | 372 |
| 373 WebKit::WebGraphicsContext3D* | 373 WebKit::WebGraphicsContext3D* |
| 374 TestWebKitPlatformSupport::createOffscreenGraphicsContext3D( | 374 TestWebKitPlatformSupport::createOffscreenGraphicsContext3D( |
| 375 const WebKit::WebGraphicsContext3D::Attributes& attributes) { | 375 const WebKit::WebGraphicsContext3D::Attributes& attributes) { |
| 376 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; | 376 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; |
| 377 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context( | 377 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context( |
| 378 new WebGraphicsContext3DInProcessCommandBufferImpl()); | 378 new WebGraphicsContext3DInProcessCommandBufferImpl()); |
| 379 if (!context->Initialize(attributes, NULL)) | 379 if (!context->Initialize(attributes)) |
| 380 return NULL; | 380 return NULL; |
| 381 return context.release(); | 381 return context.release(); |
| 382 } | 382 } |
| 383 | 383 |
| 384 WebKit::WebGraphicsContext3D* | 384 WebKit::WebGraphicsContext3D* |
| 385 TestWebKitPlatformSupport::sharedOffscreenGraphicsContext3D() { | 385 TestWebKitPlatformSupport::sharedOffscreenGraphicsContext3D() { |
| 386 main_thread_contexts_ = | 386 main_thread_contexts_ = |
| 387 webkit::gpu::TestContextProviderFactory::GetInstance()-> | 387 webkit::gpu::TestContextProviderFactory::GetInstance()-> |
| 388 OffscreenContextProviderForMainThread(); | 388 OffscreenContextProviderForMainThread(); |
| 389 if (!main_thread_contexts_) | 389 if (!main_thread_contexts_) |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 return view.release(); | 556 return view.release(); |
| 557 } | 557 } |
| 558 | 558 |
| 559 WebKit::WebLayerTreeView* | 559 WebKit::WebLayerTreeView* |
| 560 TestWebKitPlatformSupport::createLayerTreeViewForTesting( | 560 TestWebKitPlatformSupport::createLayerTreeViewForTesting( |
| 561 TestViewType type) { | 561 TestViewType type) { |
| 562 DCHECK_EQ(TestViewTypeUnitTest, type); | 562 DCHECK_EQ(TestViewTypeUnitTest, type); |
| 563 return createLayerTreeViewForTesting(); | 563 return createLayerTreeViewForTesting(); |
| 564 } | 564 } |
| 565 | 565 |
| OLD | NEW |