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

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

Issue 2789773003: Send FrameSwapMessageQueue's messages with a separate IPC (Closed)
Patch Set: Fix rebase mistake Created 3 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 #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 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // static 199 // static
200 void FrameSwapMessageQueue::TransferMessages( 200 void FrameSwapMessageQueue::TransferMessages(
201 std::vector<std::unique_ptr<IPC::Message>>* source, 201 std::vector<std::unique_ptr<IPC::Message>>* source,
202 vector<IPC::Message>* dest) { 202 vector<IPC::Message>* dest) {
203 for (const auto& msg : *source) { 203 for (const auto& msg : *source) {
204 dest->push_back(*msg.get()); 204 dest->push_back(*msg.get());
205 } 205 }
206 source->clear(); 206 source->clear();
207 } 207 }
208 208
209 uint32_t FrameSwapMessageQueue::AllocateFrameToken() {
210 return ++last_used_frame_token_;
211 }
212
209 } // namespace content 213 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/frame_swap_message_queue.h ('k') | content/renderer/gpu/queue_message_swap_promise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698