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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2317363005: Add basic GL functionality to the passthrough command buffer. (Closed)
Patch Set: Handle bind_generates_resource Created 4 years, 3 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 | « gpu/command_buffer/service/gl_utils.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 2b29cd1753fe84063a56c6a57831a26d3b31ef8f..14b042bcbfa363602e15310b863fb92346d6fb18 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -139,14 +139,6 @@ GLuint GetServiceId(const OBJECT_TYPE* object) {
return object ? object->service_id() : 0;
}
-bool CheckUniqueAndNonNullIds(GLsizei n, const GLuint* client_ids) {
- if (n <= 0)
- return true;
- std::unordered_set<uint32_t> unique_ids(client_ids, client_ids + n);
- return (unique_ids.size() == static_cast<size_t>(n)) &&
- (unique_ids.find(0) == unique_ids.end());
-}
-
struct Vec4f {
explicit Vec4f(const Vec4& data) {
data.GetValues(v);
« no previous file with comments | « gpu/command_buffer/service/gl_utils.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698