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

Side by Side Diff: components/scheduler/renderer/renderer_scheduler_impl.h

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure blame context is initialized early enough Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool IsHighPriorityWorkAnticipated() override; 69 bool IsHighPriorityWorkAnticipated() override;
70 bool ShouldYieldForHighPriorityWork() override; 70 bool ShouldYieldForHighPriorityWork() override;
71 bool CanExceedIdleDeadlineIfRequired() const override; 71 bool CanExceedIdleDeadlineIfRequired() const override;
72 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; 72 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
73 void RemoveTaskObserver( 73 void RemoveTaskObserver(
74 base::MessageLoop::TaskObserver* task_observer) override; 74 base::MessageLoop::TaskObserver* task_observer) override;
75 void Shutdown() override; 75 void Shutdown() override;
76 void SuspendTimerQueue() override; 76 void SuspendTimerQueue() override;
77 void ResumeTimerQueue() override; 77 void ResumeTimerQueue() override;
78 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; 78 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override;
79 void SetTopLevelBlameContext(
80 base::trace_event::BlameContext* blame_context) override;
79 81
80 // RenderWidgetSignals::Observer implementation: 82 // RenderWidgetSignals::Observer implementation:
81 void SetAllRenderWidgetsHidden(bool hidden) override; 83 void SetAllRenderWidgetsHidden(bool hidden) override;
82 void SetHasVisibleRenderWidgetWithTouchHandler( 84 void SetHasVisibleRenderWidgetWithTouchHandler(
83 bool has_visible_render_widget_with_touch_handler) override; 85 bool has_visible_render_widget_with_touch_handler) override;
84 86
85 // SchedulerHelper::Observer implementation: 87 // SchedulerHelper::Observer implementation:
86 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override; 88 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override;
87 void OnTriedToExecuteBlockedTask(const TaskQueue& queue, 89 void OnTriedToExecuteBlockedTask(const TaskQueue& queue,
88 const base::PendingTask& task) override; 90 const base::PendingTask& task) override;
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 411
410 PollableThreadSafeFlag policy_may_need_update_; 412 PollableThreadSafeFlag policy_may_need_update_;
411 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 413 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
412 414
413 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 415 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
414 }; 416 };
415 417
416 } // namespace scheduler 418 } // namespace scheduler
417 419
418 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 420 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « components/scheduler/renderer/renderer_scheduler.h ('k') | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698