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

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

Issue 1925093002: Handle compressed textures allocated via TexStorage2D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed obsolete method and fixed tests. Created 4 years, 7 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 <stdint.h> 10 #include <stdint.h>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 MOCK_METHOD9(ClearLevel, 106 MOCK_METHOD9(ClearLevel,
107 bool(Texture* texture, 107 bool(Texture* texture,
108 unsigned target, 108 unsigned target,
109 int level, 109 int level,
110 unsigned format, 110 unsigned format,
111 unsigned type, 111 unsigned type,
112 int x_offset, 112 int x_offset,
113 int y_offset, 113 int y_offset,
114 int width, 114 int width,
115 int height)); 115 int height));
116 MOCK_METHOD6(ClearCompressedTextureLevel,
117 bool(Texture* texture,
118 unsigned target,
119 int level,
120 unsigned format,
121 int width,
122 int height));
116 MOCK_METHOD8(ClearLevel3D, 123 MOCK_METHOD8(ClearLevel3D,
117 bool(Texture* texture, 124 bool(Texture* texture,
118 unsigned target, 125 unsigned target,
119 int level, 126 int level,
120 unsigned format, 127 unsigned format,
121 unsigned type, 128 unsigned type,
122 int width, 129 int width,
123 int height, 130 int height,
124 int depth)); 131 int depth));
125 MOCK_METHOD0(GetErrorState, ErrorState *()); 132 MOCK_METHOD0(GetErrorState, ErrorState *());
(...skipping 15 matching lines...) Expand all
141 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); 148 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool());
142 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); 149 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason));
143 150
144 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 151 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
145 }; 152 };
146 153
147 } // namespace gles2 154 } // namespace gles2
148 } // namespace gpu 155 } // namespace gpu
149 156
150 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 157 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698