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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc

Issue 555129: Add commands Jump, Call and Return... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 #include "gpu/command_buffer/common/gles2_cmd_format.h" 6 #include "gpu/command_buffer/common/gles2_cmd_format.h"
7 #include "gpu/command_buffer/service/gl_mock.h" 7 #include "gpu/command_buffer/service/gl_mock.h"
8 #include "gpu/command_buffer/service/cmd_buffer_engine.h" 8 #include "gpu/command_buffer/service/cmd_buffer_engine.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 219 }
220 220
221 Buffer GetSharedMemoryBuffer(int32 shm_id) { 221 Buffer GetSharedMemoryBuffer(int32 shm_id) {
222 return shm_id == kSharedMemoryId ? valid_buffer_ : invalid_buffer_; 222 return shm_id == kSharedMemoryId ? valid_buffer_ : invalid_buffer_;
223 } 223 }
224 224
225 void set_token(int32 token) { 225 void set_token(int32 token) {
226 DCHECK(false); 226 DCHECK(false);
227 } 227 }
228 228
229 // Overridden from CommandBufferEngine.
230 virtual bool SetGetOffset(int32 offset) {
231 DCHECK(false);
232 return false;
233 }
234
235 // Overridden from CommandBufferEngine.
236 virtual int32 GetGetOffset() {
237 DCHECK(false);
238 return 0;
239 }
240
229 private: 241 private:
230 scoped_array<int8> data_; 242 scoped_array<int8> data_;
231 Buffer valid_buffer_; 243 Buffer valid_buffer_;
232 Buffer invalid_buffer_; 244 Buffer invalid_buffer_;
233 }; 245 };
234 246
235 scoped_ptr<MockCommandBufferEngine> engine_; 247 scoped_ptr<MockCommandBufferEngine> engine_;
236 }; 248 };
237 249
238 template <> 250 template <>
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 694 EXPECT_EQ(GL_NO_ERROR, GetGLError());
683 } 695 }
684 #endif 696 #endif
685 697
686 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_autogen.h" 698 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_autogen.h"
687 699
688 } // namespace gles2 700 } // namespace gles2
689 } // namespace gpu 701 } // namespace gpu
690 702
691 703
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/common_decoder_unittest.cc ('k') | gpu/command_buffer/service/gpu_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698