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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 ProgramManager* program_manager() { 140 ProgramManager* program_manager() {
141 return group_->program_manager(); 141 return group_->program_manager();
142 } 142 }
143 143
144 ValuebufferManager* valuebuffer_manager() { 144 ValuebufferManager* valuebuffer_manager() {
145 return group_->valuebuffer_manager(); 145 return group_->valuebuffer_manager();
146 } 146 }
147 147
148 ValueStateMap* pending_valuebuffer_state() {
149 return group_->pending_valuebuffer_state();
150 }
151
148 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } 152 ImageManager* GetImageManager() { return decoder_->GetImageManager(); }
149 153
150 void DoCreateProgram(GLuint client_id, GLuint service_id); 154 void DoCreateProgram(GLuint client_id, GLuint service_id);
151 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); 155 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id);
152 156
153 void SetBucketAsCString(uint32 bucket_id, const char* str); 157 void SetBucketAsCString(uint32 bucket_id, const char* str);
154 158
155 void set_memory_tracker(MemoryTracker* memory_tracker) { 159 void set_memory_tracker(MemoryTracker* memory_tracker) {
156 memory_tracker_ = memory_tracker; 160 memory_tracker_ = memory_tracker;
157 } 161 }
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 }; 646 };
643 647
644 // SpecializedSetup specializations that are needed in multiple unittest files. 648 // SpecializedSetup specializations that are needed in multiple unittest files.
645 template <> 649 template <>
646 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); 650 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid);
647 651
648 } // namespace gles2 652 } // namespace gles2
649 } // namespace gpu 653 } // namespace gpu
650 654
651 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 655 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698