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

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

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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
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 12 matching lines...) Expand all
23 #include "gpu/gpu_export.h" 23 #include "gpu/gpu_export.h"
24 24
25 namespace gfx { 25 namespace gfx {
26 class GLContext; 26 class GLContext;
27 class GLSurface; 27 class GLSurface;
28 class Size; 28 class Size;
29 } 29 }
30 30
31 namespace gpu { 31 namespace gpu {
32 32
33 class AsyncPixelTransferManager;
34 struct Mailbox; 33 struct Mailbox;
35 34
36 namespace gles2 { 35 namespace gles2 {
37 36
38 class ContextGroup; 37 class ContextGroup;
39 class ErrorState; 38 class ErrorState;
40 class GLES2Util; 39 class GLES2Util;
41 class ImageManager; 40 class ImageManager;
42 class Logger; 41 class Logger;
43 class QueryManager; 42 class QueryManager;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Returns false if there are no idle work to be made. 193 // Returns false if there are no idle work to be made.
195 virtual bool HasMoreIdleWork() = 0; 194 virtual bool HasMoreIdleWork() = 0;
196 195
197 virtual void PerformIdleWork() = 0; 196 virtual void PerformIdleWork() = 0;
198 197
199 // Sets a callback which is called when a glResizeCHROMIUM command 198 // Sets a callback which is called when a glResizeCHROMIUM command
200 // is processed. 199 // is processed.
201 virtual void SetResizeCallback( 200 virtual void SetResizeCallback(
202 const base::Callback<void(gfx::Size, float)>& callback) = 0; 201 const base::Callback<void(gfx::Size, float)>& callback) = 0;
203 202
204 // Interface to performing async pixel transfers.
205 virtual AsyncPixelTransferManager* GetAsyncPixelTransferManager() = 0;
206 virtual void ResetAsyncPixelTransferManagerForTest() = 0;
207 virtual void SetAsyncPixelTransferManagerForTest(
208 AsyncPixelTransferManager* manager) = 0;
209
210 // Get the service texture ID corresponding to a client texture ID. 203 // Get the service texture ID corresponding to a client texture ID.
211 // If no such record is found then return false. 204 // If no such record is found then return false.
212 virtual bool GetServiceTextureId(uint32 client_texture_id, 205 virtual bool GetServiceTextureId(uint32 client_texture_id,
213 uint32* service_texture_id); 206 uint32* service_texture_id);
214 207
215 // Provides detail about a lost context if one occurred. 208 // Provides detail about a lost context if one occurred.
216 virtual error::ContextLostReason GetContextLostReason() = 0; 209 virtual error::ContextLostReason GetContextLostReason() = 0;
217 210
218 // Clears a level sub area of a texture 211 // Clears a level sub area of a texture
219 // Returns false if a GL error should be generated. 212 // Returns false if a GL error should be generated.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 bool log_commands_; 262 bool log_commands_;
270 bool unsafe_es3_apis_enabled_; 263 bool unsafe_es3_apis_enabled_;
271 264
272 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 265 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
273 }; 266 };
274 267
275 } // namespace gles2 268 } // namespace gles2
276 } // namespace gpu 269 } // namespace gpu
277 270
278 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 271 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698