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

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

Issue 2383753002: gpu: Add GpuFence framework.
Patch Set: rebase Created 4 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 <stdint.h> 10 #include <stdint.h>
(...skipping 24 matching lines...) Expand all
35 35
36 namespace gpu { 36 namespace gpu {
37 37
38 struct Mailbox; 38 struct Mailbox;
39 39
40 namespace gles2 { 40 namespace gles2 {
41 41
42 class ContextGroup; 42 class ContextGroup;
43 class ErrorState; 43 class ErrorState;
44 class FeatureInfo; 44 class FeatureInfo;
45 class FenceManager;
45 class GLES2Util; 46 class GLES2Util;
46 class ImageManager; 47 class ImageManager;
47 class Logger; 48 class Logger;
48 class QueryManager; 49 class QueryManager;
49 class ShaderTranslatorInterface; 50 class ShaderTranslatorInterface;
50 class Texture; 51 class Texture;
51 class TransformFeedbackManager; 52 class TransformFeedbackManager;
52 class VertexArrayManager; 53 class VertexArrayManager;
53 struct ContextCreationAttribHelper; 54 struct ContextCreationAttribHelper;
54 struct ContextState; 55 struct ContextState;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 213
213 // Gets the TransformFeedbackManager for this context. 214 // Gets the TransformFeedbackManager for this context.
214 virtual TransformFeedbackManager* GetTransformFeedbackManager() = 0; 215 virtual TransformFeedbackManager* GetTransformFeedbackManager() = 0;
215 216
216 // Gets the VertexArrayManager for this context. 217 // Gets the VertexArrayManager for this context.
217 virtual VertexArrayManager* GetVertexArrayManager() = 0; 218 virtual VertexArrayManager* GetVertexArrayManager() = 0;
218 219
219 // Gets the ImageManager for this context. 220 // Gets the ImageManager for this context.
220 virtual ImageManager* GetImageManager() = 0; 221 virtual ImageManager* GetImageManager() = 0;
221 222
223 // Gets the FenceManager for this context.
224 virtual FenceManager* GetFenceManager() = 0;
225
222 // Returns false if there are no pending queries. 226 // Returns false if there are no pending queries.
223 virtual bool HasPendingQueries() const = 0; 227 virtual bool HasPendingQueries() const = 0;
224 228
225 // Process any pending queries. 229 // Process any pending queries.
226 virtual void ProcessPendingQueries(bool did_finish) = 0; 230 virtual void ProcessPendingQueries(bool did_finish) = 0;
227 231
228 // Returns false if there is no idle work to be made. 232 // Returns false if there is no idle work to be made.
229 virtual bool HasMoreIdleWork() const = 0; 233 virtual bool HasMoreIdleWork() const = 0;
230 234
231 // Perform any idle work that needs to be made. 235 // Perform any idle work that needs to be made.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 bool initialized_; 344 bool initialized_;
341 bool debug_; 345 bool debug_;
342 bool log_commands_; 346 bool log_commands_;
343 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 347 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
344 }; 348 };
345 349
346 } // namespace gles2 350 } // namespace gles2
347 } // namespace gpu 351 } // namespace gpu
348 352
349 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 353 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698