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

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

Issue 10868048: Report texture upload time in renderingStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add surface_id to GpuChannelMsg_CollectRenderingStats and collect both global and surface specific … Created 8 years, 3 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) 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 GLES2Decoder class. 5 // This file contains the GLES2Decoder class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 int width, 166 int width,
167 int height, 167 int height,
168 bool is_texture_immutable) = 0; 168 bool is_texture_immutable) = 0;
169 169
170 // Gets the GL error for this context. 170 // Gets the GL error for this context.
171 virtual uint32 GetGLError() = 0; 171 virtual uint32 GetGLError() = 0;
172 172
173 // A callback for messages from the decoder. 173 // A callback for messages from the decoder.
174 virtual void SetMsgCallback(const MsgCallback& callback) = 0; 174 virtual void SetMsgCallback(const MsgCallback& callback) = 0;
175 175
176 virtual uint32 GetTextureUploadCount() = 0;
177 virtual double GetTotalTextureUploadTimeInSeconds() = 0;
apatrick_chromium 2012/08/28 20:07:06 double could be base::TimeDelta
178
176 static bool IsAngle(); 179 static bool IsAngle();
177 180
178 // Used for testing only 181 // Used for testing only
179 static void set_testing_force_is_angle(bool force); 182 static void set_testing_force_is_angle(bool force);
180 183
181 protected: 184 protected:
182 GLES2Decoder(); 185 GLES2Decoder();
183 186
184 private: 187 private:
185 bool debug_; 188 bool debug_;
186 bool log_commands_; 189 bool log_commands_;
187 bool log_synthesized_gl_errors_; 190 bool log_synthesized_gl_errors_;
188 static bool testing_force_is_angle_; 191 static bool testing_force_is_angle_;
189 192
190 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 193 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
191 }; 194 };
192 195
193 } // namespace gles2 196 } // namespace gles2
194 } // namespace gpu 197 } // namespace gpu
195 198
196 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 199 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698