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

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

Issue 962633002: scheduler: Convert enums to enum classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Did the rest too. Created 5 years, 10 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
« no previous file with comments | « no previous file | content/renderer/scheduler/renderer_scheduler_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_
6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ 6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 DEFAULT_TASK_QUEUE, 59 DEFAULT_TASK_QUEUE,
60 COMPOSITOR_TASK_QUEUE, 60 COMPOSITOR_TASK_QUEUE,
61 LOADING_TASK_QUEUE, 61 LOADING_TASK_QUEUE,
62 IDLE_TASK_QUEUE, 62 IDLE_TASK_QUEUE,
63 CONTROL_TASK_QUEUE, 63 CONTROL_TASK_QUEUE,
64 CONTROL_TASK_AFTER_WAKEUP_QUEUE, 64 CONTROL_TASK_AFTER_WAKEUP_QUEUE,
65 // Must be the last entry. 65 // Must be the last entry.
66 TASK_QUEUE_COUNT, 66 TASK_QUEUE_COUNT,
67 }; 67 };
68 68
69 enum Policy { 69 enum class Policy {
70 NORMAL_PRIORITY_POLICY, 70 NORMAL,
71 COMPOSITOR_PRIORITY_POLICY, 71 COMPOSITOR_PRIORITY,
72 TOUCHSTART_PRIORITY_POLICY, 72 TOUCHSTART_PRIORITY,
73 }; 73 };
74 74
75 enum InputStreamState { 75 enum class InputStreamState {
76 INPUT_INACTIVE, 76 INACTIVE,
77 INPUT_ACTIVE, 77 ACTIVE,
78 INPUT_ACTIVE_AND_AWAITING_TOUCHSTART_RESPONSE 78 ACTIVE_AND_AWAITING_TOUCHSTART_RESPONSE
79 }; 79 };
80 80
81 class PollableNeedsUpdateFlag { 81 class PollableNeedsUpdateFlag {
82 public: 82 public:
83 PollableNeedsUpdateFlag(base::Lock* write_lock); 83 PollableNeedsUpdateFlag(base::Lock* write_lock);
84 ~PollableNeedsUpdateFlag(); 84 ~PollableNeedsUpdateFlag();
85 85
86 // Set the flag. May only be called if |write_lock| is held. 86 // Set the flag. May only be called if |write_lock| is held.
87 void SetWhileLocked(bool value); 87 void SetWhileLocked(bool value);
88 88
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; 167 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_;
168 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 168 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
169 169
170 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 170 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
171 }; 171 };
172 172
173 } // namespace content 173 } // namespace content
174 174
175 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ 175 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/scheduler/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698