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

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

Issue 1922633002: Implement TransformFeedbackManager in GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 7b9ff320e30973cd59851702104d06ee9d8fc76e..c519ba58cb40a7843718f92ff16f18f51e49d7e2 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
@@ -28,6 +28,7 @@
#include "gpu/command_buffer/service/shader_manager.h"
#include "gpu/command_buffer/service/test_helper.h"
#include "gpu/command_buffer/service/texture_manager.h"
+#include "gpu/command_buffer/service/transform_feedback_manager.h"
#include "gpu/command_buffer/service/vertex_array_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_mock.h"
@@ -141,9 +142,9 @@ class GLES2DecoderTestBase : public ::testing::TestWithParam<bool> {
return group_->sampler_manager()->GetSampler(client_id);
}
- bool GetTransformFeedbackServiceId(
- GLuint client_id, GLuint* service_id) const {
- return group_->GetTransformFeedbackServiceId(client_id, service_id);
+ TransformFeedback* GetTransformFeedback(GLuint client_id) {
+ return decoder_->GetTransformFeedbackManager()->GetTransformFeedback(
+ client_id);
}
bool GetSyncServiceId(GLuint client_id, GLsync* service_id) const {
@@ -510,7 +511,8 @@ class GLES2DecoderTestBase : public ::testing::TestWithParam<bool> {
static const GLuint kServiceQueryId = 309;
static const GLuint kServiceVertexArrayId = 310;
static const GLuint kServiceTransformFeedbackId = 311;
- static const GLuint kServiceSyncId = 312;
+ static const GLuint kServiceDefaultTransformFeedbackId = 312;
+ static const GLuint kServiceSyncId = 313;
static const int32_t kSharedMemoryId = 401;
static const size_t kSharedBufferSize = 2048;

Powered by Google App Engine
This is Rietveld 408576698