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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h

Issue 10635011: Add glBindUniformLocationCHROMIUM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
7 7
8 #include "gpu/command_buffer/common/gl_mock.h" 8 #include "gpu/command_buffer/common/gl_mock.h"
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" 9 #include "gpu/command_buffer/common/gles2_cmd_format.h"
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 static const GLint kUniform2Size = 3; 427 static const GLint kUniform2Size = 3;
428 static const GLint kUniform3Size = 2; 428 static const GLint kUniform3Size = 2;
429 static const GLint kUniform1RealLocation = 3; 429 static const GLint kUniform1RealLocation = 3;
430 static const GLint kUniform2RealLocation = 10; 430 static const GLint kUniform2RealLocation = 10;
431 static const GLint kUniform2ElementRealLocation = 12; 431 static const GLint kUniform2ElementRealLocation = 12;
432 static const GLint kUniform3RealLocation = 20; 432 static const GLint kUniform3RealLocation = 20;
433 static const GLint kUniform1FakeLocation = 0; // These are 433 static const GLint kUniform1FakeLocation = 0; // These are
434 static const GLint kUniform2FakeLocation = 1; // hardcoded 434 static const GLint kUniform2FakeLocation = 1; // hardcoded
435 static const GLint kUniform2ElementFakeLocation = 0x10001; // to match 435 static const GLint kUniform2ElementFakeLocation = 0x10001; // to match
436 static const GLint kUniform3FakeLocation = 2; // ProgramManager. 436 static const GLint kUniform3FakeLocation = 2; // ProgramManager.
437 static const GLint kUniform1DesiredLocation = -1;
438 static const GLint kUniform2DesiredLocation = -1;
439 static const GLint kUniform3DesiredLocation = -1;
437 static const GLenum kUniform1Type = GL_SAMPLER_2D; 440 static const GLenum kUniform1Type = GL_SAMPLER_2D;
438 static const GLenum kUniform2Type = GL_INT_VEC2; 441 static const GLenum kUniform2Type = GL_INT_VEC2;
439 static const GLenum kUniform3Type = GL_FLOAT_VEC3; 442 static const GLenum kUniform3Type = GL_FLOAT_VEC3;
440 static const GLenum kUniformCubemapType = GL_SAMPLER_CUBE; 443 static const GLenum kUniformCubemapType = GL_SAMPLER_CUBE;
441 static const GLint kInvalidUniformLocation = 30; 444 static const GLint kInvalidUniformLocation = 30;
442 static const GLint kBadUniformIndex = 1000; 445 static const GLint kBadUniformIndex = 1000;
443 446
444 // Use StrictMock to make 100% sure we know how GL will be called. 447 // Use StrictMock to make 100% sure we know how GL will be called.
445 scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_; 448 scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_;
446 scoped_refptr<gfx::GLSurfaceStub> surface_; 449 scoped_refptr<gfx::GLSurfaceStub> surface_;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 protected: 531 protected:
529 virtual void SetUp() OVERRIDE; 532 virtual void SetUp() OVERRIDE;
530 virtual void TearDown() OVERRIDE; 533 virtual void TearDown() OVERRIDE;
531 534
532 }; 535 };
533 536
534 } // namespace gles2 537 } // namespace gles2
535 } // namespace gpu 538 } // namespace gpu
536 539
537 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 540 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698