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

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

Issue 7253052: Execute all GL commands up to the put offset reported by a flush. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Gets the associated ContextGroup 103 // Gets the associated ContextGroup
104 virtual ContextGroup* GetContextGroup() = 0; 104 virtual ContextGroup* GetContextGroup() = 0;
105 105
106 // Sets a callback which is called when a glResizeCHROMIUM command 106 // Sets a callback which is called when a glResizeCHROMIUM command
107 // is processed. 107 // is processed.
108 virtual void SetResizeCallback(Callback1<gfx::Size>::Type* callback) = 0; 108 virtual void SetResizeCallback(Callback1<gfx::Size>::Type* callback) = 0;
109 109
110 // Sets a callback which is called when a SwapBuffers command is processed. 110 // Sets a callback which is called when a SwapBuffers command is processed.
111 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; 111 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0;
112 112
113 // Sets a callback which is called after a Set/WaitLatch command is processed.
114 // The bool parameter will be true for SetLatch, and false for a WaitLatch
115 // that is blocked. An unblocked WaitLatch will not trigger a callback.
116 virtual void SetLatchCallback(const base::Callback<void(bool)>& callback) = 0;
117
118 // Get the service texture ID corresponding to a client texture ID. 113 // Get the service texture ID corresponding to a client texture ID.
119 // If no such record is found then return false. 114 // If no such record is found then return false.
120 virtual bool GetServiceTextureId(uint32 client_texture_id, 115 virtual bool GetServiceTextureId(uint32 client_texture_id,
121 uint32* service_texture_id); 116 uint32* service_texture_id);
122 117
123 // Provides detail about a lost context if one occurred. 118 // Provides detail about a lost context if one occurred.
124 virtual error::ContextLostReason GetContextLostReason() = 0; 119 virtual error::ContextLostReason GetContextLostReason() = 0;
125 120
126 protected: 121 protected:
127 GLES2Decoder(); 122 GLES2Decoder();
128 123
129 private: 124 private:
130 bool debug_; 125 bool debug_;
131 126
132 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 127 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
133 }; 128 };
134 129
135 } // namespace gles2 130 } // namespace gles2
136 } // namespace gpu 131 } // namespace gpu
137 132
138 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 133 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/common_decoder_unittest.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