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

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

Issue 2899073006: Send FrameSwapMessageQueue's messages in QueueMessageSwapPromise (Closed)
Patch Set: Fixed memory leak Created 3 years, 7 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
« no previous file with comments | « no previous file | content/renderer/gpu/frame_swap_message_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/frame_swap_message_queue.h
diff --git a/content/renderer/gpu/frame_swap_message_queue.h b/content/renderer/gpu/frame_swap_message_queue.h
index 0b9e1c14a01dd50c8e3d950c837d0d3f365499bc..e9de89a7f3c2812752265780256fe13f8077ebc2 100644
--- a/content/renderer/gpu/frame_swap_message_queue.h
+++ b/content/renderer/gpu/frame_swap_message_queue.h
@@ -37,7 +37,7 @@ class CONTENT_EXPORT FrameSwapMessageQueue
virtual ~SendMessageScope() {}
};
- FrameSwapMessageQueue();
+ explicit FrameSwapMessageQueue(int32_t routing_id);
// Queues message to be returned on a matching DrainMessages call.
//
@@ -98,6 +98,8 @@ class CONTENT_EXPORT FrameSwapMessageQueue
uint32_t AllocateFrameToken();
+ int32_t routing_id() const { return routing_id_; }
+
private:
friend class base::RefCountedThreadSafe<FrameSwapMessageQueue>;
@@ -110,6 +112,7 @@ class CONTENT_EXPORT FrameSwapMessageQueue
std::unique_ptr<FrameSwapMessageSubQueue> swap_queue_;
std::vector<std::unique_ptr<IPC::Message>> next_drain_messages_;
uint32_t last_used_frame_token_ = 0;
+ int32_t routing_id_ = 0;
DISALLOW_COPY_AND_ASSIGN(FrameSwapMessageQueue);
};
« no previous file with comments | « no previous file | content/renderer/gpu/frame_swap_message_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698