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

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

Issue 8756001: Rebind to correct backbuffer after clearing READ buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused result Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 GLuint old_service_id, 319 GLuint old_service_id,
320 GLenum bind_target, 320 GLenum bind_target,
321 GLenum target, 321 GLenum target,
322 GLint level, 322 GLint level,
323 GLenum format, 323 GLenum format,
324 GLenum type, 324 GLenum type,
325 GLsizei width, 325 GLsizei width,
326 GLsizei height); 326 GLsizei height);
327 327
328 void SetupExpectationsForFramebufferClearing( 328 void SetupExpectationsForFramebufferClearing(
329 GLenum target, 329 GLenum target,
330 GLuint clear_bits, 330 GLuint clear_bits,
331 GLclampf restore_red, 331 GLclampf restore_red,
332 GLclampf restore_green, 332 GLclampf restore_green,
333 GLclampf restore_blue, 333 GLclampf restore_blue,
334 GLclampf restore_alpha, 334 GLclampf restore_alpha,
335 GLuint restore_stencil, 335 GLuint restore_stencil,
336 GLclampf restore_depth, 336 GLclampf restore_depth,
337 bool restore_scissor_test); 337 bool restore_scissor_test);
338
339 void SetupExpectationsForFramebufferClearingMulti(
340 GLuint read_framebuffer_service_id,
341 GLuint draw_framebuffer_service_id,
342 GLenum target,
343 GLuint clear_bits,
344 GLclampf restore_red,
345 GLclampf restore_green,
346 GLclampf restore_blue,
347 GLclampf restore_alpha,
348 GLuint restore_stencil,
349 GLclampf restore_depth,
350 bool restore_scissor_test);
338 351
339 void SetupExpectationsForApplyingDirtyState( 352 void SetupExpectationsForApplyingDirtyState(
340 bool framebuffer_is_rgb, 353 bool framebuffer_is_rgb,
341 bool framebuffer_has_depth, 354 bool framebuffer_has_depth,
342 bool framebuffer_has_stencil, 355 bool framebuffer_has_stencil,
343 GLuint color_bits, // NOTE! bits are 0x1000, 0x0100, 0x0010, and 0x0001 356 GLuint color_bits, // NOTE! bits are 0x1000, 0x0100, 0x0010, and 0x0001
344 bool depth_mask, 357 bool depth_mask,
345 bool depth_enabled, 358 bool depth_enabled,
346 GLuint front_stencil_mask, 359 GLuint front_stencil_mask,
347 GLuint back_stencil_mask, 360 GLuint back_stencil_mask,
348 bool stencil_enabled); 361 bool stencil_enabled);
349 362
350 void SetupExpectationsForApplyingDefaultDirtyState(); 363 void SetupExpectationsForApplyingDefaultDirtyState();
351 364
352 void AddExpectationsForSimulatedAttrib0WithError( 365 void AddExpectationsForSimulatedAttrib0WithError(
353 GLsizei num_vertices, GLuint buffer_id, GLenum error); 366 GLsizei num_vertices, GLuint buffer_id, GLenum error);
354 367
355 void AddExpectationsForSimulatedAttrib0( 368 void AddExpectationsForSimulatedAttrib0(
356 GLsizei num_vertices, GLuint buffer_id); 369 GLsizei num_vertices, GLuint buffer_id);
357 370
358 GLvoid* BufferOffset(unsigned i) { 371 GLvoid* BufferOffset(unsigned i) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 protected: 462 protected:
450 virtual void SetUp() OVERRIDE; 463 virtual void SetUp() OVERRIDE;
451 virtual void TearDown() OVERRIDE; 464 virtual void TearDown() OVERRIDE;
452 465
453 }; 466 };
454 467
455 } // namespace gles2 468 } // namespace gles2
456 } // namespace gpu 469 } // namespace gpu
457 470
458 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 471 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698