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

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

Issue 1168213003: gpu: Make sure we restore scissor rect after clearing a texture level. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enable scissor test in UnClearedAttachmentsGetClearedOnClear Created 5 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
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 1583462b3b848e4b359a382b9a39ae14e790ddfe..7394cdd36413953f71ece76d12e40eafb9e12f00 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
@@ -326,6 +326,8 @@ class GLES2DecoderTestBase : public ::testing::TestWithParam<bool> {
void DoBufferSubData(
GLenum target, GLint offset, GLsizei size, const void* data);
+ void DoScissor(GLint x, GLint y, GLsizei width, GLsizei height);
+
void SetupVertexBuffer();
void SetupAllNeededVertexBuffers();
@@ -348,25 +350,31 @@ class GLES2DecoderTestBase : public ::testing::TestWithParam<bool> {
GLsizei width,
GLsizei height);
- void SetupExpectationsForRestoreClearState(
- GLclampf restore_red,
- GLclampf restore_green,
- GLclampf restore_blue,
- GLclampf restore_alpha,
- GLuint restore_stencil,
- GLclampf restore_depth,
- bool restore_scissor_test);
-
- void SetupExpectationsForFramebufferClearing(
- GLenum target,
- GLuint clear_bits,
- GLclampf restore_red,
- GLclampf restore_green,
- GLclampf restore_blue,
- GLclampf restore_alpha,
- GLuint restore_stencil,
- GLclampf restore_depth,
- bool restore_scissor_test);
+ void SetupExpectationsForRestoreClearState(GLclampf restore_red,
+ GLclampf restore_green,
+ GLclampf restore_blue,
+ GLclampf restore_alpha,
+ GLuint restore_stencil,
+ GLclampf restore_depth,
+ bool restore_scissor_test,
+ GLint restore_scissor_x,
+ GLint restore_scissor_y,
+ GLsizei restore_scissor_width,
+ GLsizei restore_scissor_height);
+
+ void SetupExpectationsForFramebufferClearing(GLenum target,
+ GLuint clear_bits,
+ GLclampf restore_red,
+ GLclampf restore_green,
+ GLclampf restore_blue,
+ GLclampf restore_alpha,
+ GLuint restore_stencil,
+ GLclampf restore_depth,
+ bool restore_scissor_test,
+ GLint restore_scissor_x,
+ GLint restore_scissor_y,
+ GLsizei restore_scissor_width,
+ GLsizei restore_scissor_height);
void SetupExpectationsForFramebufferClearingMulti(
GLuint read_framebuffer_service_id,
@@ -379,7 +387,11 @@ class GLES2DecoderTestBase : public ::testing::TestWithParam<bool> {
GLclampf restore_alpha,
GLuint restore_stencil,
GLclampf restore_depth,
- bool restore_scissor_test);
+ bool restore_scissor_test,
+ GLint restore_scissor_x,
+ GLint restore_scissor_y,
+ GLsizei restore_scissor_width,
+ GLsizei restore_scissor_height);
void SetupExpectationsForDepthMask(bool mask);
void SetupExpectationsForEnableDisable(GLenum cap, bool enable);
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698