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

Side by Side Diff: content/renderer/gpu/frame_swap_message_queue.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 #include "content/renderer/gpu/frame_swap_message_queue.h" 5 #include "content/renderer/gpu/frame_swap_message_queue.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h"
12 #include "base/stl_util.h" 13 #include "base/stl_util.h"
13 #include "ipc/ipc_message.h" 14 #include "ipc/ipc_message.h"
14 15
15 using std::vector; 16 using std::vector;
16 17
17 namespace content { 18 namespace content {
18 19
19 class FrameSwapMessageSubQueue { 20 class FrameSwapMessageSubQueue {
20 public: 21 public:
21 FrameSwapMessageSubQueue() {} 22 FrameSwapMessageSubQueue() {}
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 void FrameSwapMessageQueue::TransferMessages( 200 void FrameSwapMessageQueue::TransferMessages(
200 std::vector<scoped_ptr<IPC::Message>>* source, 201 std::vector<scoped_ptr<IPC::Message>>* source,
201 vector<IPC::Message>* dest) { 202 vector<IPC::Message>* dest) {
202 for (const auto& msg : *source) { 203 for (const auto& msg : *source) {
203 dest->push_back(*msg.get()); 204 dest->push_back(*msg.get());
204 } 205 }
205 source->clear(); 206 source->clear();
206 } 207 }
207 208
208 } // namespace content 209 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/frame_swap_message_queue.h ('k') | content/renderer/gpu/gpu_benchmarking_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698