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

Unified Diff: gpu/command_buffer/service/buffer_manager.h

Issue 1827693002: Revert of Fix PRIMITIVE_RESTART_FIXED_INDEX handling in command buffer and WebGL 2.0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/buffer_manager.h
diff --git a/gpu/command_buffer/service/buffer_manager.h b/gpu/command_buffer/service/buffer_manager.h
index 5e2c60ce27432e1a859f656a8103f54c0cae7532..33df818647966ed15770dcbe77aa83e0f05e2e55 100644
--- a/gpu/command_buffer/service/buffer_manager.h
+++ b/gpu/command_buffer/service/buffer_manager.h
@@ -63,7 +63,7 @@
// offset is in bytes.
// count is in elements of type.
bool GetMaxValueForRange(GLuint offset, GLsizei count, GLenum type,
- bool primitive_restart_enabled, GLuint* max_value);
+ GLuint* max_value);
// Returns a pointer to shadowed data.
const void* GetRange(GLintptr offset, GLsizeiptr size) const;
@@ -101,12 +101,10 @@
// Represents a range in a buffer.
class Range {
public:
- Range(GLuint offset, GLsizei count, GLenum type,
- bool primitive_restart_enabled)
+ Range(GLuint offset, GLsizei count, GLenum type)
: offset_(offset),
count_(count),
- type_(type),
- primitive_restart_enabled_(primitive_restart_enabled) {
+ type_(type) {
}
// A less functor provided for std::map so it can find ranges.
@@ -118,10 +116,7 @@
if (lhs.count_ != rhs.count_) {
return lhs.count_ < rhs.count_;
}
- if (lhs.type_ != rhs.type_) {
- return lhs.type_ < rhs.type_;
- }
- return lhs.primitive_restart_enabled_ < rhs.primitive_restart_enabled_;
+ return lhs.type_ < rhs.type_;
}
};
@@ -129,7 +124,6 @@
GLuint offset_;
GLsizei count_;
GLenum type_;
- bool primitive_restart_enabled_;
};
~Buffer();
« no previous file with comments | « no previous file | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698