Index: android_webview/browser/compositor_id.h |
diff --git a/android_webview/browser/compositor_id.h b/android_webview/browser/compositor_id.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dbd5c3591582c2d13c6a323d4fb3b626f1c7f815 |
--- /dev/null |
+++ b/android_webview/browser/compositor_id.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ANDROID_WEBVIEW_BROWSER_COMPOSITOR_ID_H_ |
+#define ANDROID_WEBVIEW_BROWSER_COMPOSITOR_ID_H_ |
+ |
+namespace android_webview { |
+ |
+struct CompositorID { |
+ CompositorID(); |
+ CompositorID(int process_id, int routing_id); |
+ CompositorID(const CompositorID& other); |
+ |
+ CompositorID& operator=(const CompositorID& other); |
+ |
+ friend bool operator==(const CompositorID& lhs, const CompositorID& rhs); |
boliu
2016/06/13 15:30:44
ditto about what we discussd in person
|
+ friend bool operator!=(const CompositorID& lhs, const CompositorID& rhs); |
+ friend bool operator<(const CompositorID& lhs, const CompositorID& rhs); |
+ friend bool operator>(const CompositorID& lhs, const CompositorID& rhs); |
+ friend bool operator<=(const CompositorID& lhs, const CompositorID& rhs); |
+ friend bool operator>=(const CompositorID& lhs, const CompositorID& rhs); |
+ |
+ int process_id; |
+ int routing_id; |
+}; |
+ |
+} // namespace android_webview |
+ |
+#endif // ANDROID_WEBVIEW_BROWSER_COMPOSITOR_ID_H_ |