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

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

Issue 9307102: Fix TexImage2D clearing too agressively (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 int level, 138 int level,
139 unsigned format, 139 unsigned format,
140 unsigned type, 140 unsigned type,
141 int width, 141 int width,
142 int height, 142 int height,
143 bool is_texture_immutable) = 0; 143 bool is_texture_immutable) = 0;
144 144
145 // A callback for messages from the decoder. 145 // A callback for messages from the decoder.
146 virtual void SetMsgCallback(const MsgCallback& callback) = 0; 146 virtual void SetMsgCallback(const MsgCallback& callback) = 0;
147 147
148 static bool IsAngle();
149
150 // Used for testing only
151 static void set_testing_force_is_angle(bool force);
152
148 protected: 153 protected:
149 GLES2Decoder(); 154 GLES2Decoder();
150 155
151 private: 156 private:
152 bool debug_; 157 bool debug_;
153 bool log_commands_; 158 bool log_commands_;
159 static bool testing_force_is_angle_;
154 160
155 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 161 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
156 }; 162 };
157 163
158 } // namespace gles2 164 } // namespace gles2
159 } // namespace gpu 165 } // namespace gpu
160 166
161 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 167 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698