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

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: Revert to surface_id instead of route_id. 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/time.h"
13 #include "build/build_config.h" 14 #include "build/build_config.h"
14 #include "gpu/command_buffer/service/common_decoder.h" 15 #include "gpu/command_buffer/service/common_decoder.h"
15 #include "ui/gfx/size.h" 16 #include "ui/gfx/size.h"
16 17
17 namespace gfx { 18 namespace gfx {
18 class GLContext; 19 class GLContext;
19 class GLSurface; 20 class GLSurface;
20 } 21 }
21 22
22 namespace gpu { 23 namespace gpu {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 int width, 167 int width,
167 int height, 168 int height,
168 bool is_texture_immutable) = 0; 169 bool is_texture_immutable) = 0;
169 170
170 // Gets the GL error for this context. 171 // Gets the GL error for this context.
171 virtual uint32 GetGLError() = 0; 172 virtual uint32 GetGLError() = 0;
172 173
173 // A callback for messages from the decoder. 174 // A callback for messages from the decoder.
174 virtual void SetMsgCallback(const MsgCallback& callback) = 0; 175 virtual void SetMsgCallback(const MsgCallback& callback) = 0;
175 176
177 virtual uint32 GetTextureUploadCount() = 0;
178 virtual base::TimeDelta GetTotalTextureUploadTime() = 0;
179 virtual base::TimeDelta GetTotalProcessingCommandsTime() = 0;
180
176 static bool IsAngle(); 181 static bool IsAngle();
177 182
178 // Used for testing only 183 // Used for testing only
179 static void set_testing_force_is_angle(bool force); 184 static void set_testing_force_is_angle(bool force);
180 185
181 protected: 186 protected:
182 GLES2Decoder(); 187 GLES2Decoder();
183 188
184 private: 189 private:
185 bool debug_; 190 bool debug_;
186 bool log_commands_; 191 bool log_commands_;
187 bool log_synthesized_gl_errors_; 192 bool log_synthesized_gl_errors_;
188 static bool testing_force_is_angle_; 193 static bool testing_force_is_angle_;
189 194
190 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 195 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
191 }; 196 };
192 197
193 } // namespace gles2 198 } // namespace gles2
194 } // namespace gpu 199 } // namespace gpu
195 200
196 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 201 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698