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

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

Issue 1420503011: GLES2CmdDecoder should resize GLSurface using GLSurface::Resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 <string> 10 #include <string>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // Process any pending queries. 197 // Process any pending queries.
198 virtual void ProcessPendingQueries(bool did_finish) = 0; 198 virtual void ProcessPendingQueries(bool did_finish) = 0;
199 199
200 // Returns false if there is no idle work to be made. 200 // Returns false if there is no idle work to be made.
201 virtual bool HasMoreIdleWork() const = 0; 201 virtual bool HasMoreIdleWork() const = 0;
202 202
203 // Perform any idle work that needs to be made. 203 // Perform any idle work that needs to be made.
204 virtual void PerformIdleWork() = 0; 204 virtual void PerformIdleWork() = 0;
205 205
206 // Sets a callback which is called when a glResizeCHROMIUM command
207 // is processed.
208 virtual void SetResizeCallback(
209 const base::Callback<void(gfx::Size, float)>& callback) = 0;
210
211 // Get the service texture ID corresponding to a client texture ID. 206 // Get the service texture ID corresponding to a client texture ID.
212 // If no such record is found then return false. 207 // If no such record is found then return false.
213 virtual bool GetServiceTextureId(uint32 client_texture_id, 208 virtual bool GetServiceTextureId(uint32 client_texture_id,
214 uint32* service_texture_id); 209 uint32* service_texture_id);
215 210
216 // Provides detail about a lost context if one occurred. 211 // Provides detail about a lost context if one occurred.
217 virtual error::ContextLostReason GetContextLostReason() = 0; 212 virtual error::ContextLostReason GetContextLostReason() = 0;
218 213
219 // Clears a level sub area of a texture 214 // Clears a level sub area of a texture
220 // Returns false if a GL error should be generated. 215 // Returns false if a GL error should be generated.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 bool log_commands_; 272 bool log_commands_;
278 bool unsafe_es3_apis_enabled_; 273 bool unsafe_es3_apis_enabled_;
279 274
280 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 275 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
281 }; 276 };
282 277
283 } // namespace gles2 278 } // namespace gles2
284 } // namespace gpu 279 } // namespace gpu
285 280
286 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 281 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gl_surface_mock.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698