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

Unified Diff: content/child/blink_platform_impl.h

Issue 1589463002: compositor worker: Use a WebThread for the compositor thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self.nit Created 4 years, 11 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 | « components/scheduler/scheduler.gypi ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.h
diff --git a/content/child/blink_platform_impl.h b/content/child/blink_platform_impl.h
index c91477ab6559d49bccad58407426b34c0f2d3a8e..2adc28ecd7d02f831421e12a4ef342aab2f89388 100644
--- a/content/child/blink_platform_impl.h
+++ b/content/child/blink_platform_impl.h
@@ -186,19 +186,14 @@ class CONTENT_EXPORT BlinkPlatformImpl
blink::WebString domKeyStringFromEnum(int dom_key) override;
int domKeyEnumFromString(const blink::WebString& key_string) override;
- scoped_ptr<scheduler::WebThreadBase> createThreadWithOptions(
- const char* name,
- base::Thread::Options);
-
- // This class does *not* own |compositor_thread|. It is the responsibility of
- // the caller to ensure that the compositor thread is cleared before it is
+ // This class does *not* own the compositor thread. It is the responsibility
+ // of the caller to ensure that the compositor thread is cleared before it is
// destructed.
- void set_compositor_thread(scheduler::WebThreadBase* compositor_thread) {
- compositor_thread_ = compositor_thread;
- }
+ void SetCompositorThread(scheduler::WebThreadBase* compositor_thread);
private:
void InternalInit();
+ void WaitUntilWebThreadTLSUpdate(scheduler::WebThreadBase* thread);
void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event);
bool IsMainThread() const;
« no previous file with comments | « components/scheduler/scheduler.gypi ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698