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

Unified Diff: content/renderer/gpu/frame_swap_message_queue.cc

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/renderer/gpu/frame_swap_message_queue.cc
diff --git a/content/renderer/gpu/frame_swap_message_queue.cc b/content/renderer/gpu/frame_swap_message_queue.cc
index df4185db1391778b799ba746e6473e5438f8b825..979f250f49d5a4787351c5ce332224e6bc99f854 100644
--- a/content/renderer/gpu/frame_swap_message_queue.cc
+++ b/content/renderer/gpu/frame_swap_message_queue.cc
@@ -36,7 +36,7 @@ namespace {
class SendMessageScopeImpl : public FrameSwapMessageQueue::SendMessageScope {
public:
SendMessageScopeImpl(base::Lock* lock) : auto_lock_(*lock) {}
- virtual ~SendMessageScopeImpl() OVERRIDE {}
+ virtual ~SendMessageScopeImpl() override {}
private:
base::AutoLock auto_lock_;
@@ -53,11 +53,11 @@ class VisualStateQueue : public FrameSwapMessageSubQueue {
}
}
- virtual bool Empty() const OVERRIDE { return queue_.empty(); }
+ virtual bool Empty() const override { return queue_.empty(); }
virtual void QueueMessage(int source_frame_number,
scoped_ptr<IPC::Message> msg,
- bool* is_first) OVERRIDE {
+ bool* is_first) override {
if (is_first)
*is_first = (queue_.count(source_frame_number) == 0);
@@ -65,7 +65,7 @@ class VisualStateQueue : public FrameSwapMessageSubQueue {
}
virtual void DrainMessages(int source_frame_number,
- ScopedVector<IPC::Message>* messages) OVERRIDE {
+ ScopedVector<IPC::Message>* messages) override {
VisualStateQueueMap::iterator end = queue_.upper_bound(source_frame_number);
for (VisualStateQueueMap::iterator i = queue_.begin(); i != end; i++) {
DCHECK(i->first <= source_frame_number);
@@ -86,18 +86,18 @@ class VisualStateQueue : public FrameSwapMessageSubQueue {
class SwapQueue : public FrameSwapMessageSubQueue {
public:
SwapQueue() {}
- virtual bool Empty() const OVERRIDE { return queue_.empty(); }
+ virtual bool Empty() const override { return queue_.empty(); }
virtual void QueueMessage(int source_frame_number,
scoped_ptr<IPC::Message> msg,
- bool* is_first) OVERRIDE {
+ bool* is_first) override {
if (is_first)
*is_first = Empty();
queue_.push_back(msg.release());
}
virtual void DrainMessages(int source_frame_number,
- ScopedVector<IPC::Message>* messages) OVERRIDE {
+ ScopedVector<IPC::Message>* messages) override {
messages->insert(messages->end(), queue_.begin(), queue_.end());
queue_.weak_clear();
}
« no previous file with comments | « content/renderer/gpu/compositor_software_output_device.h ('k') | content/renderer/gpu/gpu_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698