Commit 3897cd17 by Jamie Madill

Don't use std::tuple in IndexRangeCache.

std::tuple currently isn't available on Chromium/OSX. BUG=angle:773 Change-Id: I9f9efc88dcfe904e98a76df8b04086b88f724424 Reviewed-on: https://chromium-review.googlesource.com/238442Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 47e156c0
......@@ -12,8 +12,6 @@
#include "common/debug.h"
#include <tuple>
namespace rx
{
......@@ -111,7 +109,9 @@ IndexRangeCache::IndexRange::IndexRange(GLenum typ, intptr_t off, GLsizei c)
bool IndexRangeCache::IndexRange::operator<(const IndexRange& rhs) const
{
return std::make_tuple(type, offset, count) < std::make_tuple(rhs.type, rhs.offset, rhs.count);
if (type != rhs.type) return type < rhs.type;
if (offset != rhs.offset) return offset < rhs.offset;
return count < rhs.count;
}
IndexRangeCache::IndexBounds::IndexBounds()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment