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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 "gpu/command_buffer/common/gles2_cmd_format.h" 8 #include "gpu/command_buffer/common/gles2_cmd_format.h"
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
10 #include "gpu/command_buffer/service/buffer_manager.h" 10 #include "gpu/command_buffer/service/buffer_manager.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 ValueStateMap* pending_valuebuffer_state() { 163 ValueStateMap* pending_valuebuffer_state() {
164 return group_->pending_valuebuffer_state(); 164 return group_->pending_valuebuffer_state();
165 } 165 }
166 166
167 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } 167 ImageManager* GetImageManager() { return decoder_->GetImageManager(); }
168 168
169 void DoCreateProgram(GLuint client_id, GLuint service_id); 169 void DoCreateProgram(GLuint client_id, GLuint service_id);
170 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); 170 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id);
171 void DoFenceSync(GLuint client_id, GLuint service_id); 171 void DoFenceSync(GLuint client_id, GLuint service_id);
172 172
173 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size);
173 void SetBucketAsCString(uint32 bucket_id, const char* str); 174 void SetBucketAsCString(uint32 bucket_id, const char* str);
174 // If we want a valid bucket, just set |count_in_header| as |count|, 175 // If we want a valid bucket, just set |count_in_header| as |count|,
175 // and set |str_end| as 0. 176 // and set |str_end| as 0.
176 void SetBucketAsCStrings(uint32 bucket_id, GLsizei count, const char** str, 177 void SetBucketAsCStrings(uint32 bucket_id, GLsizei count, const char** str,
177 GLsizei count_in_header, char str_end); 178 GLsizei count_in_header, char str_end);
178 179
179 void set_memory_tracker(MemoryTracker* memory_tracker) { 180 void set_memory_tracker(MemoryTracker* memory_tracker) {
180 memory_tracker_ = memory_tracker; 181 memory_tracker_ = memory_tracker;
181 } 182 }
182 183
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 }; 673 };
673 674
674 // SpecializedSetup specializations that are needed in multiple unittest files. 675 // SpecializedSetup specializations that are needed in multiple unittest files.
675 template <> 676 template <>
676 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); 677 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid);
677 678
678 } // namespace gles2 679 } // namespace gles2
679 } // namespace gpu 680 } // namespace gpu
680 681
681 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 682 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698