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

Unified Diff: components/html_viewer/blink_platform_impl.h

Issue 1078173002: Remove obsolete SharedTimer code in chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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 | « no previous file | components/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/blink_platform_impl.h
diff --git a/components/html_viewer/blink_platform_impl.h b/components/html_viewer/blink_platform_impl.h
index 36cdb1f2547d6f3eb4d9f59d3944aa8d55106b91..b651e04cba05b3dd70f029706019eb1f64496c3b 100644
--- a/components/html_viewer/blink_platform_impl.h
+++ b/components/html_viewer/blink_platform_impl.h
@@ -52,9 +52,6 @@ class BlinkPlatformImpl : public blink::Platform {
virtual double monotonicallyIncreasingTime();
virtual void cryptographicallyRandomValues(unsigned char* buffer,
size_t length);
- virtual void setSharedTimerFiredFunction(void (*func)());
- virtual void setSharedTimerFireInterval(double interval_seconds);
- virtual void stopSharedTimer();
virtual bool isThreadedCompositingEnabled();
virtual blink::WebCompositorSupport* compositorSupport();
void createMessageChannel(blink::WebMessagePortChannel** channel1,
@@ -85,24 +82,12 @@ class BlinkPlatformImpl : public blink::Platform {
virtual blink::WebNotificationManager* notificationManager();
private:
- void SuspendSharedTimer();
- void ResumeSharedTimer();
void UpdateWebThreadTLS(blink::WebThread* thread);
- void DoTimeout() {
- if (shared_timer_func_ && !shared_timer_suspended_)
- shared_timer_func_();
- }
-
static void DestroyCurrentThread(void*);
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
scoped_ptr<scheduler::WebThreadImplForRendererScheduler> main_thread_;
- base::OneShotTimer<BlinkPlatformImpl> shared_timer_;
- void (*shared_timer_func_)();
- double shared_timer_fire_time_;
- bool shared_timer_fire_time_was_set_while_suspended_;
- int shared_timer_suspended_; // counter
base::ThreadLocalStorage::Slot current_thread_slot_;
cc_blink::WebCompositorSupportImpl compositor_support_;
WebThemeEngineImpl theme_engine_;
« no previous file with comments | « no previous file | components/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698