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

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

Issue 7890046: Command to mark surface inactive, so gpu process can release resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: updating with recent changes Created 9 years, 2 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual gfx::GLContext* GetGLContext() = 0; 99 virtual gfx::GLContext* GetGLContext() = 0;
100 100
101 // Gets the associated ContextGroup 101 // Gets the associated ContextGroup
102 virtual ContextGroup* GetContextGroup() = 0; 102 virtual ContextGroup* GetContextGroup() = 0;
103 103
104 // Sets a callback which is called when a glResizeCHROMIUM command 104 // Sets a callback which is called when a glResizeCHROMIUM command
105 // is processed. 105 // is processed.
106 virtual void SetResizeCallback( 106 virtual void SetResizeCallback(
107 Callback1<gfx::Size>::Type* callback) = 0; 107 Callback1<gfx::Size>::Type* callback) = 0;
108 108
109 virtual void SetSurfaceVisibleCallback(
110 Callback1<bool>::Type* callback) = 0;
111
109 #if defined(OS_MACOSX) 112 #if defined(OS_MACOSX)
110 // Sets a callback which is called when a SwapBuffers command is processed. 113 // Sets a callback which is called when a SwapBuffers command is processed.
111 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; 114 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0;
112 #endif 115 #endif
113 116
114 // Get the service texture ID corresponding to a client texture ID. 117 // Get the service texture ID corresponding to a client texture ID.
115 // If no such record is found then return false. 118 // If no such record is found then return false.
116 virtual bool GetServiceTextureId(uint32 client_texture_id, 119 virtual bool GetServiceTextureId(uint32 client_texture_id,
117 uint32* service_texture_id); 120 uint32* service_texture_id);
118 121
119 // Provides detail about a lost context if one occurred. 122 // Provides detail about a lost context if one occurred.
120 virtual error::ContextLostReason GetContextLostReason() = 0; 123 virtual error::ContextLostReason GetContextLostReason() = 0;
121 124
122 protected: 125 protected:
123 GLES2Decoder(); 126 GLES2Decoder();
124 127
125 private: 128 private:
126 bool debug_; 129 bool debug_;
127 130
128 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 131 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
129 }; 132 };
130 133
131 } // namespace gles2 134 } // namespace gles2
132 } // namespace gpu 135 } // namespace gpu
133 136
134 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698