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

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

Issue 795243002: Add TransformFeedback related APIs to command buffer: PART I. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
index 0d62c559540e0e1738cb8422511f642ae3d39e36..6d6ddd26d453f1a9393adf69ef0546b0b7f26b90 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
@@ -135,6 +135,11 @@ class GLES2DecoderTestBase : public ::testing::TestWithParam<bool> {
return group_->GetSamplerServiceId(client_id, service_id);
}
+ bool GetTransformFeedbackServiceId(
+ GLuint client_id, GLuint* service_id) const {
+ return group_->GetTransformFeedbackServiceId(client_id, service_id);
+ }
+
// This name doesn't match the underlying function, but doing it this way
// prevents the need to special-case the unit test generation
VertexAttribManager* GetVertexArrayInfo(GLuint client_id) {
@@ -436,6 +441,7 @@ class GLES2DecoderTestBase : public ::testing::TestWithParam<bool> {
static const GLuint kServiceElementBufferId = 308;
static const GLuint kServiceQueryId = 309;
static const GLuint kServiceVertexArrayId = 310;
+ static const GLuint kServiceTransformFeedbackId = 311;
static const int32 kSharedMemoryId = 401;
static const size_t kSharedBufferSize = 2048;
@@ -534,6 +540,7 @@ class GLES2DecoderTestBase : public ::testing::TestWithParam<bool> {
GLuint client_query_id_;
GLuint client_vertexarray_id_;
GLuint client_valuebuffer_id_;
+ GLuint client_transformfeedback_id_;
uint32 shared_memory_id_;
uint32 shared_memory_offset_;

Powered by Google App Engine
This is Rietveld 408576698