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

Unified Diff: content/browser/android/synchronous_compositor_browser_filter.h

Issue 2449973002: sync compositor: Queue up pending frame futures (Closed)
Patch Set: comment Created 4 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
« no previous file with comments | « no previous file | content/browser/android/synchronous_compositor_browser_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/synchronous_compositor_browser_filter.h
diff --git a/content/browser/android/synchronous_compositor_browser_filter.h b/content/browser/android/synchronous_compositor_browser_filter.h
index 62c4ed7a6f69d1a58b6525708d290f9806bb51dd..43efc928e2b6a9067280f3ddcca32de714b2cd9b 100644
--- a/content/browser/android/synchronous_compositor_browser_filter.h
+++ b/content/browser/android/synchronous_compositor_browser_filter.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BROWSER_FILTER_H_
#define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BROWSER_FILTER_H_
+#include <deque>
+#include <map>
#include <vector>
#include "base/macros.h"
@@ -59,8 +61,10 @@ class SynchronousCompositorBrowserFilter : public ui::WindowAndroidObserver,
compositor_host_pending_renderer_state_;
base::Lock future_map_lock_; // Protects |future_map_|.
- using FrameFutureMap =
- std::map<int, scoped_refptr<SynchronousCompositor::FrameFuture>>;
+ using FrameFutureQueue =
+ std::deque<scoped_refptr<SynchronousCompositor::FrameFuture>>;
+ // This object is per renderer process, so routing_id is unique.
+ using FrameFutureMap = std::map<int, FrameFutureQueue>;
FrameFutureMap future_map_;
DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorBrowserFilter);
« no previous file with comments | « no previous file | content/browser/android/synchronous_compositor_browser_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698