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

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

Issue 16175005: GPU: Replace AsyncPixelTransferState with AsyncPixelTransferDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual void PerformIdleWork() = 0; 172 virtual void PerformIdleWork() = 0;
173 173
174 // Sets a callback which is called when a glResizeCHROMIUM command 174 // Sets a callback which is called when a glResizeCHROMIUM command
175 // is processed. 175 // is processed.
176 virtual void SetResizeCallback( 176 virtual void SetResizeCallback(
177 const base::Callback<void(gfx::Size, float)>& callback) = 0; 177 const base::Callback<void(gfx::Size, float)>& callback) = 0;
178 178
179 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; 179 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0;
180 180
181 // Interface to performing async pixel transfers. 181 // Interface to performing async pixel transfers.
182 virtual AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0;
183 virtual AsyncPixelTransferManager* GetAsyncPixelTransferManager() = 0; 182 virtual AsyncPixelTransferManager* GetAsyncPixelTransferManager() = 0;
184 virtual void ResetAsyncPixelTransferManagerForTest() = 0; 183 virtual void ResetAsyncPixelTransferManagerForTest() = 0;
185 virtual void SetAsyncPixelTransferManagerForTest( 184 virtual void SetAsyncPixelTransferManagerForTest(
186 AsyncPixelTransferManager* manager) = 0; 185 AsyncPixelTransferManager* manager) = 0;
187 186
188 // Get the service texture ID corresponding to a client texture ID. 187 // Get the service texture ID corresponding to a client texture ID.
189 // If no such record is found then return false. 188 // If no such record is found then return false.
190 virtual bool GetServiceTextureId(uint32 client_texture_id, 189 virtual bool GetServiceTextureId(uint32 client_texture_id,
191 uint32* service_texture_id); 190 uint32* service_texture_id);
192 191
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 bool debug_; 241 bool debug_;
243 bool log_commands_; 242 bool log_commands_;
244 static bool testing_force_is_angle_; 243 static bool testing_force_is_angle_;
245 244
246 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 245 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
247 }; 246 };
248 247
249 } // namespace gles2 248 } // namespace gles2
250 } // namespace gpu 249 } // namespace gpu
251 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 250 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/async_pixel_transfer_manager_sync.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