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

Unified Diff: sky/engine/testing/platform/platform_impl.cc

Issue 673033002: Remove WebThread (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/testing/platform/platform_impl.h ('k') | sky/engine/testing/platform/webthread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/testing/platform/platform_impl.cc
diff --git a/sky/engine/testing/platform/platform_impl.cc b/sky/engine/testing/platform/platform_impl.cc
index b2e071f266880e7af3cfeae79c54fb425376821b..62147eef4b6adccf8c03b00c5e0d54d1c88febf5 100644
--- a/sky/engine/testing/platform/platform_impl.cc
+++ b/sky/engine/testing/platform/platform_impl.cc
@@ -14,7 +14,6 @@
#include "net/base/mime_util.h"
#include "net/base/net_errors.h"
#include "sky/engine/public/platform/WebWaitableEvent.h"
-#include "sky/engine/testing/platform/webthread_impl.h"
namespace sky {
namespace {
@@ -43,8 +42,7 @@ PlatformImpl::PlatformImpl()
shared_timer_func_(NULL),
shared_timer_fire_time_(0.0),
shared_timer_fire_time_was_set_while_suspended_(false),
- shared_timer_suspended_(0),
- current_thread_slot_(&DestroyCurrentThread) {
+ shared_timer_suspended_(0) {
}
PlatformImpl::~PlatformImpl() {
@@ -147,22 +145,6 @@ blink::WebData PlatformImpl::parseDataURL(
return blink::WebData();
}
-blink::WebThread* PlatformImpl::currentThread() {
- WebThreadImplForMessageLoop* thread =
- static_cast<WebThreadImplForMessageLoop*>(current_thread_slot_.Get());
- if (thread)
- return (thread);
-
- scoped_refptr<base::MessageLoopProxy> message_loop =
- base::MessageLoopProxy::current();
- if (!message_loop.get())
- return NULL;
-
- thread = new WebThreadImplForMessageLoop(message_loop.get());
- current_thread_slot_.Set(thread);
- return thread;
-}
-
blink::WebWaitableEvent* PlatformImpl::createWaitableEvent() {
return new WebWaitableEventImpl();
}
@@ -178,11 +160,4 @@ blink::WebWaitableEvent* PlatformImpl::waitMultipleEvents(
return web_events[idx];
}
-// static
-void PlatformImpl::DestroyCurrentThread(void* thread) {
- WebThreadImplForMessageLoop* impl =
- static_cast<WebThreadImplForMessageLoop*>(thread);
- delete impl;
-}
-
} // namespace sky
« no previous file with comments | « sky/engine/testing/platform/platform_impl.h ('k') | sky/engine/testing/platform/webthread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698