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

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

Issue 8341128: Defer clearing textures and renderbuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix one more unit test Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains the mock GLES2Decoder class. 5 // This file contains the mock GLES2Decoder class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 MOCK_METHOD1(SetResizeCallback, void(Callback1<gfx::Size>::Type*)); 49 MOCK_METHOD1(SetResizeCallback, void(Callback1<gfx::Size>::Type*));
50 MOCK_METHOD1(SetSwapBuffersCallback, void(Callback0::Type*)); 50 MOCK_METHOD1(SetSwapBuffersCallback, void(Callback0::Type*));
51 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*)); 51 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*));
52 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, 52 MOCK_METHOD3(DoCommand, error::Error(unsigned int command,
53 unsigned int arg_count, 53 unsigned int arg_count,
54 const void* cmd_data)); 54 const void* cmd_data));
55 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, 55 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id,
56 uint32* service_texture_id)); 56 uint32* service_texture_id));
57 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); 57 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason());
58 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); 58 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id));
59 MOCK_METHOD8(ClearLevel, bool(
60 unsigned service_id,
61 unsigned bind_target,
62 unsigned target,
63 int level,
64 unsigned format,
65 unsigned type,
66 int width,
67 int height));
59 68
60 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 69 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
61 }; 70 };
62 71
63 } // namespace gles2 72 } // namespace gles2
64 } // namespace gpu 73 } // namespace gpu
65 74
66 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 75 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698