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

Unified Diff: content/child/scheduler/null_idle_task_runner.h

Issue 1025323003: Introduce a SchedulerHelper in content/child/scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ross's suggestions Created 5 years, 9 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
Index: content/child/scheduler/null_idle_task_runner.h
diff --git a/content/common/gpu/media/vp8_picture.h b/content/child/scheduler/null_idle_task_runner.h
similarity index 33%
copy from content/common/gpu/media/vp8_picture.h
copy to content/child/scheduler/null_idle_task_runner.h
index 1187698e7a70ce1c5920b53a0ce101f19ef6a464..c722775ec8116f32c9c28be134921b05c16a7d12 100644
--- a/content/common/gpu/media/vp8_picture.h
+++ b/content/child/scheduler/null_idle_task_runner.h
@@ -2,28 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_GPU_MEDIA_VP8_PICTURE_H_
-#define CONTENT_COMMON_GPU_MEDIA_VP8_PICTURE_H_
+#ifndef CONTENT_CHILD_SCHEDULER_NULL_IDLE_TASK_RUNNER_H_
+#define CONTENT_CHILD_SCHEDULER_NULL_IDLE_TASK_RUNNER_H_
-#include "base/memory/ref_counted.h"
+#include "content/child/scheduler/single_thread_idle_task_runner.h"
namespace content {
-class V4L2VP8Picture;
-
-class VP8Picture : public base::RefCounted<VP8Picture> {
+class NullIdleTaskRunner : public SingleThreadIdleTaskRunner {
public:
- VP8Picture();
-
- virtual V4L2VP8Picture* AsV4L2VP8Picture();
+ NullIdleTaskRunner();
+ void PostIdleTask(const tracked_objects::Location& from_here,
+ const IdleTask& idle_task) override;
protected:
- friend class base::RefCounted<VP8Picture>;
- virtual ~VP8Picture();
-
- DISALLOW_COPY_AND_ASSIGN(VP8Picture);
+ ~NullIdleTaskRunner() override;
};
Sami 2015/03/27 17:22:27 DISALLOW_COPY_AND_ASSIGN(NullIdleTaskRunner);
alex clarke (OOO till 29th) 2015/03/27 17:38:51 Done.
} // namespace content
-#endif // CONTENT_COMMON_GPU_MEDIA_VP8_PICTURE_H_
+#endif // CONTENT_CHILD_SCHEDULER_NULL_IDLE_TASK_RUNNER_H_

Powered by Google App Engine
This is Rietveld 408576698