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

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

Issue 7158002: Revert 89002 - Enforce RGB even on buggy drivers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h (revision 89013)
+++ gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h (working copy)
@@ -162,14 +162,7 @@
void SetBucketAsCString(uint32 bucket_id, const char* str);
- void InitDecoder(
- const char* extensions,
- bool has_alpha,
- bool has_depth,
- bool has_stencil,
- bool request_alpha,
- bool request_depth,
- bool request_stencil);
+ void InitDecoder(const char* extensions, bool has_alpha_backbuffer);
const ContextGroup& group() const {
return *group_.get();
@@ -239,21 +232,14 @@
GLclampf restore_green,
GLclampf restore_blue,
GLclampf restore_alpha,
+ GLuint restore_color_mask,
GLuint restore_stencil,
+ GLuint restore_stencil_front_mask,
+ GLuint restore_stencil_back_mask,
GLclampf restore_depth,
+ GLboolean restore_depth_mask,
bool restore_scissor_test);
- void SetupExpectationsForApplyingDirtyState(
- bool framebuffer_is_rgb,
- bool framebuffer_has_depth,
- bool framebuffer_has_stencil,
- GLuint color_bits, // NOTE! bits are 0x1000, 0x0100, 0x0010, and 0x0001
- bool depth_mask,
- GLuint front_stencil_mask,
- GLuint back_stencil_mask);
-
- void SetupExpectationsForApplyingDefaultDirtyState();
-
GLvoid* BufferOffset(unsigned i) {
return static_cast<int8 *>(NULL)+(i);
}
@@ -396,7 +382,6 @@
virtual void SetUp();
virtual void TearDown();
- void SetupDefaultProgram();
void SetupTexture();
void DoEnableVertexAttribArray(GLint index);

Powered by Google App Engine
This is Rietveld 408576698