diff options
author | skaslev@chromium.org <skaslev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 05:06:48 +0000 |
---|---|---|
committer | skaslev@chromium.org <skaslev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 05:06:48 +0000 |
commit | d0f4bd1f302782137367a5285621a4ade6a6610d (patch) | |
tree | bbd91719ca4c006791f04c208894b4173825659c /ui/surface | |
parent | 9fcd7832c97ede151ad09e9a5847fc8012faa3ed (diff) | |
download | chromium_src-d0f4bd1f302782137367a5285621a4ade6a6610d.zip chromium_src-d0f4bd1f302782137367a5285621a4ade6a6610d.tar.gz chromium_src-d0f4bd1f302782137367a5285621a4ade6a6610d.tar.bz2 |
Pass a sequence number along with the DIB handle when compositing in software.
BUG=124671, 161008
Review URL: https://chromiumcodereview.appspot.com/13248003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/surface')
-rw-r--r-- | ui/surface/transport_dib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/surface/transport_dib.h b/ui/surface/transport_dib.h index 233cd2e..6397c97 100644 --- a/ui/surface/transport_dib.h +++ b/ui/surface/transport_dib.h @@ -54,6 +54,10 @@ class SURFACE_EXPORT TransportDIB { sequence_num(seq_num) { } + bool operator==(const HandleAndSequenceNum& other) const { + return other.handle == handle && other.sequence_num == sequence_num; + } + bool operator<(const HandleAndSequenceNum& other) const { // Use the lexicographic order on the tuple <handle, sequence_num>. if (other.handle != handle) |