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

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

Issue 168983005: Do not rely on a texture's internalformat matching format (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add unit tests for TexSubImage2D on GLES3 Created 6 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 // 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void()); 80 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void());
81 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest, 81 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest,
82 void(AsyncPixelTransferManager*)); 82 void(AsyncPixelTransferManager*));
83 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, 83 MOCK_METHOD3(DoCommand, error::Error(unsigned int command,
84 unsigned int arg_count, 84 unsigned int arg_count,
85 const void* cmd_data)); 85 const void* cmd_data));
86 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, 86 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id,
87 uint32* service_texture_id)); 87 uint32* service_texture_id));
88 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); 88 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason());
89 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); 89 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id));
90 MOCK_METHOD9(ClearLevel, bool( 90 MOCK_METHOD10(ClearLevel, bool(
91 unsigned service_id, 91 unsigned service_id,
92 unsigned bind_target, 92 unsigned bind_target,
93 unsigned target, 93 unsigned target,
94 int level, 94 int level,
95 unsigned internal_format,
95 unsigned format, 96 unsigned format,
96 unsigned type, 97 unsigned type,
97 int width, 98 int width,
98 int height, 99 int height,
99 bool is_texture_immutable)); 100 bool is_texture_immutable));
100 MOCK_METHOD0(GetErrorState, ErrorState *()); 101 MOCK_METHOD0(GetErrorState, ErrorState *());
101 102
102 MOCK_METHOD0(GetLogger, Logger*()); 103 MOCK_METHOD0(GetLogger, Logger*());
103 MOCK_METHOD1(SetShaderCacheCallback, 104 MOCK_METHOD1(SetShaderCacheCallback,
104 void(const ShaderCacheCallback& callback)); 105 void(const ShaderCacheCallback& callback));
105 MOCK_METHOD1(SetWaitSyncPointCallback, 106 MOCK_METHOD1(SetWaitSyncPointCallback,
106 void(const WaitSyncPointCallback& callback)); 107 void(const WaitSyncPointCallback& callback));
107 MOCK_METHOD1(WaitForReadPixels, 108 MOCK_METHOD1(WaitForReadPixels,
108 void(base::Closure callback)); 109 void(base::Closure callback));
109 MOCK_METHOD0(GetTextureUploadCount, uint32()); 110 MOCK_METHOD0(GetTextureUploadCount, uint32());
110 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); 111 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta());
111 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); 112 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta());
112 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); 113 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta));
113 MOCK_METHOD0(WasContextLost, bool()); 114 MOCK_METHOD0(WasContextLost, bool());
114 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); 115 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool());
115 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); 116 MOCK_METHOD1(LoseContext, void(uint32 reset_status));
116 117
117 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 118 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
118 }; 119 };
119 120
120 } // namespace gles2 121 } // namespace gles2
121 } // namespace gpu 122 } // namespace gpu
122 123
123 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 124 #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