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/glue/webkitplatformsupport_impl.h" | 5 #include "webkit/glue/webkitplatformsupport_impl.h" |
6 | 6 |
7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
8 #include <malloc.h> | 8 #include <malloc.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 scoped_refptr<base::MessageLoopProxy> message_loop = | 562 scoped_refptr<base::MessageLoopProxy> message_loop = |
563 base::MessageLoopProxy::current(); | 563 base::MessageLoopProxy::current(); |
564 if (!message_loop) | 564 if (!message_loop) |
565 return NULL; | 565 return NULL; |
566 | 566 |
567 thread = new WebThreadImplForMessageLoop(message_loop); | 567 thread = new WebThreadImplForMessageLoop(message_loop); |
568 current_thread_slot_.Set(thread); | 568 current_thread_slot_.Set(thread); |
569 return thread; | 569 return thread; |
570 } | 570 } |
571 | 571 |
| 572 WebKit::WebGraphicsContext3D* |
| 573 WebKitPlatformSupportImpl::createGraphicsContext3D() { |
| 574 return WebKitPlatformSupport::createGraphicsContext3D(); |
| 575 } |
| 576 |
| 577 WebKit::WebGraphicsContext3D* |
| 578 WebKitPlatformSupportImpl::createGraphicsContext3D( |
| 579 WebKit::WebGraphicsContext3D::Attributes attributes, |
| 580 WebKit::WebView* web_view, |
| 581 bool render_to_web_view) { |
| 582 scoped_ptr<WebKit::WebGraphicsContext3D> context(createGraphicsContext3D()); |
| 583 if (!context.get() || |
| 584 !context->initialize(attributes, web_view, render_to_web_view)) { |
| 585 return NULL; |
| 586 } |
| 587 return context.release(); |
| 588 } |
| 589 |
572 base::PlatformFile WebKitPlatformSupportImpl::databaseOpenFile( | 590 base::PlatformFile WebKitPlatformSupportImpl::databaseOpenFile( |
573 const WebKit::WebString& vfs_file_name, int desired_flags) { | 591 const WebKit::WebString& vfs_file_name, int desired_flags) { |
574 return base::kInvalidPlatformFileValue; | 592 return base::kInvalidPlatformFileValue; |
575 } | 593 } |
576 | 594 |
577 int WebKitPlatformSupportImpl::databaseDeleteFile( | 595 int WebKitPlatformSupportImpl::databaseDeleteFile( |
578 const WebKit::WebString& vfs_file_name, bool sync_dir) { | 596 const WebKit::WebString& vfs_file_name, bool sync_dir) { |
579 return -1; | 597 return -1; |
580 } | 598 } |
581 | 599 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 worker_task_runner->OnWorkerRunLoopStarted(runLoop); | 711 worker_task_runner->OnWorkerRunLoopStarted(runLoop); |
694 } | 712 } |
695 | 713 |
696 void WebKitPlatformSupportImpl::didStopWorkerRunLoop( | 714 void WebKitPlatformSupportImpl::didStopWorkerRunLoop( |
697 const WebKit::WebWorkerRunLoop& runLoop) { | 715 const WebKit::WebWorkerRunLoop& runLoop) { |
698 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); | 716 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); |
699 worker_task_runner->OnWorkerRunLoopStopped(runLoop); | 717 worker_task_runner->OnWorkerRunLoopStopped(runLoop); |
700 } | 718 } |
701 | 719 |
702 } // namespace webkit_glue | 720 } // namespace webkit_glue |
OLD | NEW |