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

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

Issue 12040049: gpu: Implement idle async pixel transfers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review feedback and make BindFinishedAsyncPixelTransfers() handle out of order async upload… Created 7 years, 9 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // Gets the QueryManager for this context. 157 // Gets the QueryManager for this context.
158 virtual QueryManager* GetQueryManager() = 0; 158 virtual QueryManager* GetQueryManager() = 0;
159 159
160 // Gets the VertexArrayManager for this context. 160 // Gets the VertexArrayManager for this context.
161 virtual VertexArrayManager* GetVertexArrayManager() = 0; 161 virtual VertexArrayManager* GetVertexArrayManager() = 0;
162 162
163 // Process any pending queries. Returns false if there are no pending queries. 163 // Process any pending queries. Returns false if there are no pending queries.
164 virtual bool ProcessPendingQueries() = 0; 164 virtual bool ProcessPendingQueries() = 0;
165 165
166 // Returns false if there are no pending queries or idle tasks to be made.
167 virtual bool HasMoreWork() = 0;
168
169 // Idle work handler. Returns false if there is no pending idle work.
170 virtual bool PerformIdleWork() = 0;
171
166 // Sets a callback which is called when a glResizeCHROMIUM command 172 // Sets a callback which is called when a glResizeCHROMIUM command
167 // is processed. 173 // is processed.
168 virtual void SetResizeCallback( 174 virtual void SetResizeCallback(
169 const base::Callback<void(gfx::Size)>& callback) = 0; 175 const base::Callback<void(gfx::Size)>& callback) = 0;
170 176
171 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; 177 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0;
172 178
173 // Interface to performing async pixel transfers. 179 // Interface to performing async pixel transfers.
174 virtual gfx::AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0; 180 virtual gfx::AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0;
175 virtual void SetAsyncPixelTransferDelegate( 181 virtual void SetAsyncPixelTransferDelegate(
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 bool log_commands_; 266 bool log_commands_;
261 bool log_synthesized_gl_errors_; 267 bool log_synthesized_gl_errors_;
262 static bool testing_force_is_angle_; 268 static bool testing_force_is_angle_;
263 269
264 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 270 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
265 }; 271 };
266 272
267 } // namespace gles2 273 } // namespace gles2
268 } // namespace gpu 274 } // namespace gpu
269 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 275 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698