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 | |
590 base::PlatformFile WebKitPlatformSupportImpl::databaseOpenFile( | 572 base::PlatformFile WebKitPlatformSupportImpl::databaseOpenFile( |
591 const WebKit::WebString& vfs_file_name, int desired_flags) { | 573 const WebKit::WebString& vfs_file_name, int desired_flags) { |
592 return base::kInvalidPlatformFileValue; | 574 return base::kInvalidPlatformFileValue; |
593 } | 575 } |
594 | 576 |
595 int WebKitPlatformSupportImpl::databaseDeleteFile( | 577 int WebKitPlatformSupportImpl::databaseDeleteFile( |
596 const WebKit::WebString& vfs_file_name, bool sync_dir) { | 578 const WebKit::WebString& vfs_file_name, bool sync_dir) { |
597 return -1; | 579 return -1; |
598 } | 580 } |
599 | 581 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 worker_task_runner->OnWorkerRunLoopStarted(runLoop); | 693 worker_task_runner->OnWorkerRunLoopStarted(runLoop); |
712 } | 694 } |
713 | 695 |
714 void WebKitPlatformSupportImpl::didStopWorkerRunLoop( | 696 void WebKitPlatformSupportImpl::didStopWorkerRunLoop( |
715 const WebKit::WebWorkerRunLoop& runLoop) { | 697 const WebKit::WebWorkerRunLoop& runLoop) { |
716 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); | 698 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); |
717 worker_task_runner->OnWorkerRunLoopStopped(runLoop); | 699 worker_task_runner->OnWorkerRunLoopStopped(runLoop); |
718 } | 700 } |
719 | 701 |
720 } // namespace webkit_glue | 702 } // namespace webkit_glue |
OLD | NEW |