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

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

Issue 2814583002: Service/ClientDiscardableManager (Closed)
Patch Set: Feedback Created 3 years, 7 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 void AddExpectationsForSimulatedAttrib0( 462 void AddExpectationsForSimulatedAttrib0(
463 GLsizei num_vertices, GLuint buffer_id); 463 GLsizei num_vertices, GLuint buffer_id);
464 464
465 void AddExpectationsForGenVertexArraysOES(); 465 void AddExpectationsForGenVertexArraysOES();
466 void AddExpectationsForDeleteVertexArraysOES(); 466 void AddExpectationsForDeleteVertexArraysOES();
467 void AddExpectationsForDeleteBoundVertexArraysOES(); 467 void AddExpectationsForDeleteBoundVertexArraysOES();
468 void AddExpectationsForBindVertexArrayOES(); 468 void AddExpectationsForBindVertexArrayOES();
469 void AddExpectationsForRestoreAttribState(GLuint attrib); 469 void AddExpectationsForRestoreAttribState(GLuint attrib);
470 470
471 void DoInitializeDiscardableTextureCHROMIUM(GLuint texture_id);
472 void DoUnlockDiscardableTextureCHROMIUM(GLuint texture_id);
473 void DoLockDiscardableTextureCHROMIUM(GLuint texture_id);
474 bool IsDiscardableTextureUnlocked(GLuint texture_id);
475
471 GLvoid* BufferOffset(unsigned i) { return static_cast<int8_t*>(NULL) + (i); } 476 GLvoid* BufferOffset(unsigned i) { return static_cast<int8_t*>(NULL) + (i); }
472 477
473 template <typename Command, typename Result> 478 template <typename Command, typename Result>
474 bool IsObjectHelper(GLuint client_id) { 479 bool IsObjectHelper(GLuint client_id) {
475 Result* result = static_cast<Result*>(shared_memory_address_); 480 Result* result = static_cast<Result*>(shared_memory_address_);
476 Command cmd; 481 Command cmd;
477 cmd.Init(client_id, kSharedMemoryId, kSharedMemoryOffset); 482 cmd.Init(client_id, kSharedMemoryId, kSharedMemoryOffset);
478 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 483 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
479 bool isObject = static_cast<bool>(*result); 484 bool isObject = static_cast<bool>(*result);
480 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 485 EXPECT_EQ(GL_NO_ERROR, GetGLError());
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 if (arg[i] != array[i]) 794 if (arg[i] != array[i])
790 return false; 795 return false;
791 } 796 }
792 return true; 797 return true;
793 } 798 }
794 799
795 } // namespace gles2 800 } // namespace gles2
796 } // namespace gpu 801 } // namespace gpu
797 802
798 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 803 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698