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

Unified Diff: content/child/blink_platform_impl.h

Issue 1449953002: compositor-worker: Refactor CompositorWorkerManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer comments. Created 5 years, 1 month 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
Index: content/child/blink_platform_impl.h
diff --git a/content/child/blink_platform_impl.h b/content/child/blink_platform_impl.h
index 25c164936ccbd92c1da18d348e5dfd2c19c2e7bf..4f0f467632cb853b5c474ca057f2bf21b6b706ca 100644
--- a/content/child/blink_platform_impl.h
+++ b/content/child/blink_platform_impl.h
@@ -32,6 +32,10 @@ namespace base {
class MessageLoop;
}
+namespace scheduler {
+class WebThreadImplForWorkerScheduler;
+}
+
namespace content {
class BackgroundSyncProvider;
class FlingCurveConfiguration;
@@ -91,6 +95,7 @@ class CONTENT_EXPORT BlinkPlatformImpl
bool isReservedIPAddress(const blink::WebString& host) const override;
bool portAllowed(const blink::WebURL& url) const override;
blink::WebThread* createThread(const char* name) override;
+ blink::WebThread* createThreadForCompositor(const char* name);
blink::WebThread* currentThread() override;
void yieldCurrentThread() override;
blink::WebWaitableEvent* createWaitableEvent(
@@ -167,6 +172,7 @@ class CONTENT_EXPORT BlinkPlatformImpl
double systemTraceTime() override;
void cryptographicallyRandomValues(unsigned char* buffer,
size_t length) override;
+ blink::WebThread* compositorThread() const override;
blink::WebGestureCurve* createFlingAnimationCurve(
blink::WebGestureDevice device_source,
const blink::WebFloatPoint& velocity,
@@ -208,6 +214,8 @@ class CONTENT_EXPORT BlinkPlatformImpl
scoped_refptr<PushDispatcher> push_dispatcher_;
scoped_ptr<PermissionDispatcher> permission_client_;
scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_;
+
+ scheduler::WebThreadImplForWorkerScheduler* compositor_thread_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698