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

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

Issue 8341128: Defer clearing textures and renderbuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix one more unit test Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; 115 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0;
116 116
117 // Get the service texture ID corresponding to a client texture ID. 117 // Get the service texture ID corresponding to a client texture ID.
118 // If no such record is found then return false. 118 // If no such record is found then return false.
119 virtual bool GetServiceTextureId(uint32 client_texture_id, 119 virtual bool GetServiceTextureId(uint32 client_texture_id,
120 uint32* service_texture_id); 120 uint32* service_texture_id);
121 121
122 // Provides detail about a lost context if one occurred. 122 // Provides detail about a lost context if one occurred.
123 virtual error::ContextLostReason GetContextLostReason() = 0; 123 virtual error::ContextLostReason GetContextLostReason() = 0;
124 124
125 // Clears a level of a texture
126 // Returns false if a GL error should be generated.
127 virtual bool ClearLevel(
128 unsigned service_id,
129 unsigned bind_target,
130 unsigned target,
131 int level,
132 unsigned format,
133 unsigned type,
134 int width,
135 int height) = 0;
136
125 protected: 137 protected:
126 GLES2Decoder(); 138 GLES2Decoder();
127 139
128 private: 140 private:
129 bool debug_; 141 bool debug_;
130 142
131 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 143 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
132 }; 144 };
133 145
134 } // namespace gles2 146 } // namespace gles2
135 } // namespace gpu 147 } // namespace gpu
136 148
137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 149 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/framebuffer_manager_unittest.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