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/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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { | 451 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { |
452 return SimpleResourceLoaderBridge::Create(request_info); | 452 return SimpleResourceLoaderBridge::Create(request_info); |
453 } | 453 } |
454 | 454 |
455 webkit_glue::WebSocketStreamHandleBridge* | 455 webkit_glue::WebSocketStreamHandleBridge* |
456 TestWebKitPlatformSupport::CreateWebSocketBridge( | 456 TestWebKitPlatformSupport::CreateWebSocketBridge( |
457 WebKit::WebSocketStreamHandle* handle, | 457 WebKit::WebSocketStreamHandle* handle, |
458 webkit_glue::WebSocketStreamHandleDelegate* delegate) { | 458 webkit_glue::WebSocketStreamHandleDelegate* delegate) { |
459 return SimpleSocketStreamBridge::Create(handle, delegate); | 459 return SimpleSocketStreamBridge::Create(handle, delegate); |
460 } | 460 } |
| 461 |
| 462 bool TestWebKitPlatformSupport::canAccelerate2dCanvas() { |
| 463 // We supply an OS-MESA based context for accelarated 2d |
| 464 // canvas, which should always work. |
| 465 return true; |
| 466 } |
OLD | NEW |