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

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

Issue 954053002: gpu: Avoid detaching images with glTexSubImage2D (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new tests 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 157 }
158 158
159 ValuebufferManager* valuebuffer_manager() { 159 ValuebufferManager* valuebuffer_manager() {
160 return group_->valuebuffer_manager(); 160 return group_->valuebuffer_manager();
161 } 161 }
162 162
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 FeatureInfo* feature_info() {
168 return group_->feature_info();
169 }
170
167 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } 171 ImageManager* GetImageManager() { return decoder_->GetImageManager(); }
168 172
169 void DoCreateProgram(GLuint client_id, GLuint service_id); 173 void DoCreateProgram(GLuint client_id, GLuint service_id);
170 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); 174 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id);
171 void DoFenceSync(GLuint client_id, GLuint service_id); 175 void DoFenceSync(GLuint client_id, GLuint service_id);
172 176
173 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size); 177 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size);
174 void SetBucketAsCString(uint32 bucket_id, const char* str); 178 void SetBucketAsCString(uint32 bucket_id, const char* str);
175 // If we want a valid bucket, just set |count_in_header| as |count|, 179 // If we want a valid bucket, just set |count_in_header| as |count|,
176 // and set |str_end| as 0. 180 // and set |str_end| as 0.
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 }; 677 };
674 678
675 // SpecializedSetup specializations that are needed in multiple unittest files. 679 // SpecializedSetup specializations that are needed in multiple unittest files.
676 template <> 680 template <>
677 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); 681 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid);
678 682
679 } // namespace gles2 683 } // namespace gles2
680 } // namespace gpu 684 } // namespace gpu
681 685
682 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 686 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698