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

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

Issue 1154053002: gpu: Use a rectangle to keep track of the cleared area of each texture level. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix GLES2DecoderImpl::DoCopyTexImage2D Created 5 years, 6 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const void* cmd_data)); 94 const void* cmd_data));
95 MOCK_METHOD4(DoCommands, 95 MOCK_METHOD4(DoCommands,
96 error::Error(unsigned int num_commands, 96 error::Error(unsigned int num_commands,
97 const void* buffer, 97 const void* buffer,
98 int num_entries, 98 int num_entries,
99 int* entries_processed)); 99 int* entries_processed));
100 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, 100 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id,
101 uint32* service_texture_id)); 101 uint32* service_texture_id));
102 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); 102 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason());
103 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); 103 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id));
104 MOCK_METHOD9(ClearLevel, bool( 104 MOCK_METHOD9(ClearLevel,
105 Texture* texture, 105 bool(Texture* texture,
106 unsigned target, 106 unsigned target,
107 int level, 107 int level,
108 unsigned internal_format, 108 unsigned format,
109 unsigned format, 109 unsigned type,
110 unsigned type, 110 int x_offset,
111 int width, 111 int y_offset,
112 int height, 112 int width,
113 bool is_texture_immutable)); 113 int height));
114 MOCK_METHOD0(GetErrorState, ErrorState *()); 114 MOCK_METHOD0(GetErrorState, ErrorState *());
115 115
116 MOCK_METHOD0(GetLogger, Logger*()); 116 MOCK_METHOD0(GetLogger, Logger*());
117 MOCK_METHOD1(SetShaderCacheCallback, 117 MOCK_METHOD1(SetShaderCacheCallback,
118 void(const ShaderCacheCallback& callback)); 118 void(const ShaderCacheCallback& callback));
119 MOCK_METHOD1(SetWaitSyncPointCallback, 119 MOCK_METHOD1(SetWaitSyncPointCallback,
120 void(const WaitSyncPointCallback& callback)); 120 void(const WaitSyncPointCallback& callback));
121 MOCK_METHOD1(WaitForReadPixels, 121 MOCK_METHOD1(WaitForReadPixels,
122 void(base::Closure callback)); 122 void(base::Closure callback));
123 MOCK_METHOD0(GetTextureUploadCount, uint32()); 123 MOCK_METHOD0(GetTextureUploadCount, uint32());
124 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); 124 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta());
125 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta()); 125 MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta());
126 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta)); 126 MOCK_METHOD1(AddProcessingCommandsTime, void(base::TimeDelta));
127 MOCK_CONST_METHOD0(WasContextLost, bool()); 127 MOCK_CONST_METHOD0(WasContextLost, bool());
128 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); 128 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool());
129 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); 129 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason));
130 130
131 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); 131 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
132 }; 132 };
133 133
134 } // namespace gles2 134 } // namespace gles2
135 } // namespace gpu 135 } // namespace gpu
136 136
137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ 137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698