Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ANDROID_WEBVIEW_BROWSER_COMPOSITOR_ID_H_ | |
| 6 #define ANDROID_WEBVIEW_BROWSER_COMPOSITOR_ID_H_ | |
| 7 | |
| 8 namespace android_webview { | |
| 9 | |
| 10 struct CompositorID { | |
| 11 CompositorID(); | |
| 12 CompositorID(int process_id, int routing_id); | |
| 13 CompositorID(const CompositorID& other); | |
| 14 | |
| 15 CompositorID& operator=(const CompositorID& other); | |
| 16 | |
| 17 friend bool operator==(const CompositorID& lhs, const CompositorID& rhs); | |
|
boliu
2016/06/13 15:30:44
ditto about what we discussd in person
| |
| 18 friend bool operator!=(const CompositorID& lhs, const CompositorID& rhs); | |
| 19 friend bool operator<(const CompositorID& lhs, const CompositorID& rhs); | |
| 20 friend bool operator>(const CompositorID& lhs, const CompositorID& rhs); | |
| 21 friend bool operator<=(const CompositorID& lhs, const CompositorID& rhs); | |
| 22 friend bool operator>=(const CompositorID& lhs, const CompositorID& rhs); | |
| 23 | |
| 24 int process_id; | |
| 25 int routing_id; | |
| 26 }; | |
| 27 | |
| 28 } // namespace android_webview | |
| 29 | |
| 30 #endif // ANDROID_WEBVIEW_BROWSER_COMPOSITOR_ID_H_ | |
| OLD | NEW |