blob: 83a5d9aafa3cfe571c0133da3219329eca214926 [file] [log] [blame]
Romain Guyfb8b7632010-08-23 21:05:08 -07001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Romain Guy5b3b3522010-10-27 18:57:51 -070017#ifndef ANDROID_HWUI_CACHES_H
18#define ANDROID_HWUI_CACHES_H
Romain Guyfb8b7632010-08-23 21:05:08 -070019
Romain Guya2341a92010-09-08 18:04:33 -070020#ifndef LOG_TAG
21 #define LOG_TAG "OpenGLRenderer"
22#endif
Romain Guyfb8b7632010-08-23 21:05:08 -070023
Romain Guy3b748a42013-04-17 18:54:38 -070024#include <GLES3/gl3.h>
25
26#include <utils/KeyedVector.h>
Romain Guyfb8b7632010-08-23 21:05:08 -070027#include <utils/Singleton.h>
Romain Guy3b748a42013-04-17 18:54:38 -070028#include <utils/Vector.h>
Romain Guyfb8b7632010-08-23 21:05:08 -070029
Romain Guy79537452011-10-12 13:48:51 -070030#include <cutils/compiler.h>
31
Romain Guy5dc7fa72013-03-11 20:48:31 -070032#include "thread/TaskProcessor.h"
33#include "thread/TaskManager.h"
34
Romain Guy3b748a42013-04-17 18:54:38 -070035#include "AssetAtlas.h"
Leon Scroggins III0fa2bd62014-05-05 12:50:38 -040036#include "Extensions.h"
Romain Guy03750a02010-10-18 14:06:08 -070037#include "FontRenderer.h"
38#include "GammaFontRenderer.h"
Romain Guyfb8b7632010-08-23 21:05:08 -070039#include "TextureCache.h"
40#include "LayerCache.h"
Romain Guy8d4aeb72013-02-12 16:08:55 -080041#include "RenderBufferCache.h"
Romain Guyfb8b7632010-08-23 21:05:08 -070042#include "GradientCache.h"
43#include "PatchCache.h"
Romain Guyfb8b7632010-08-23 21:05:08 -070044#include "ProgramCache.h"
Romain Guyff26a0c2011-01-20 11:35:46 -080045#include "PathCache.h"
Chris Craik05f3d6e2014-06-02 16:27:04 -070046#include "TessellationCache.h"
Romain Guyfb8b7632010-08-23 21:05:08 -070047#include "TextDropShadowCache.h"
Romain Guye2d345e2010-09-24 18:39:22 -070048#include "FboCache.h"
Chet Haase5c13d892010-10-08 08:37:55 -070049#include "ResourceCache.h"
Romain Guy0baaac52012-08-31 20:31:01 -070050#include "Stencil.h"
Romain Guy211efea2012-07-31 21:16:07 -070051#include "Dither.h"
Romain Guyfb8b7632010-08-23 21:05:08 -070052
53namespace android {
54namespace uirenderer {
55
Romain Guy03750a02010-10-18 14:06:08 -070056///////////////////////////////////////////////////////////////////////////////
57// Globals
58///////////////////////////////////////////////////////////////////////////////
59
Romain Guy8aa195d2013-06-04 18:00:09 -070060// GL ES 2.0 defines that at least 16 texture units must be supported
Romain Guy03750a02010-10-18 14:06:08 -070061#define REQUIRED_TEXTURE_UNITS_COUNT 3
62
Romain Guy31e08e92013-06-18 15:53:53 -070063// Maximum number of quads that pre-allocated meshes can draw
64static const uint32_t gMaxNumberOfQuads = 2048;
Romain Guy5b3b3522010-10-27 18:57:51 -070065
Romain Guy03750a02010-10-18 14:06:08 -070066// Generates simple and textured vertices
Romain Guy3380cfd2013-08-15 16:57:57 -070067#define FV(x, y, u, v) { x, y, u, v }
Romain Guy03750a02010-10-18 14:06:08 -070068
69// This array is never used directly but used as a memcpy source in the
70// OpenGLRenderer constructor
71static const TextureVertex gMeshVertices[] = {
72 FV(0.0f, 0.0f, 0.0f, 0.0f),
73 FV(1.0f, 0.0f, 1.0f, 0.0f),
74 FV(0.0f, 1.0f, 0.0f, 1.0f),
75 FV(1.0f, 1.0f, 1.0f, 1.0f)
76};
77static const GLsizei gMeshStride = sizeof(TextureVertex);
Chet Haase5b0200b2011-04-13 17:58:08 -070078static const GLsizei gVertexStride = sizeof(Vertex);
79static const GLsizei gAlphaVertexStride = sizeof(AlphaVertex);
Romain Guy03750a02010-10-18 14:06:08 -070080static const GLsizei gMeshTextureOffset = 2 * sizeof(float);
Chris Craik6ebdc112012-08-31 18:24:33 -070081static const GLsizei gVertexAlphaOffset = 2 * sizeof(float);
Chet Haase99585ad2011-05-02 15:00:16 -070082static const GLsizei gVertexAAWidthOffset = 2 * sizeof(float);
83static const GLsizei gVertexAALengthOffset = 3 * sizeof(float);
Romain Guy03750a02010-10-18 14:06:08 -070084static const GLsizei gMeshCount = 4;
85
Romain Guy8aa195d2013-06-04 18:00:09 -070086// Must define as many texture units as specified by REQUIRED_TEXTURE_UNITS_COUNT
Romain Guya1d3c912011-12-13 14:55:06 -080087static const GLenum gTextureUnits[] = {
88 GL_TEXTURE0,
89 GL_TEXTURE1,
90 GL_TEXTURE2
91};
92
Romain Guy03750a02010-10-18 14:06:08 -070093///////////////////////////////////////////////////////////////////////////////
94// Debug
95///////////////////////////////////////////////////////////////////////////////
96
Romain Guyfb8b7632010-08-23 21:05:08 -070097struct CacheLogger {
98 CacheLogger() {
Romain Guyd6b2a002011-06-17 17:45:59 -070099 INIT_LOGD("Creating OpenGL renderer caches");
Romain Guyfb8b7632010-08-23 21:05:08 -0700100 }
101}; // struct CacheLogger
102
Romain Guy03750a02010-10-18 14:06:08 -0700103///////////////////////////////////////////////////////////////////////////////
104// Caches
105///////////////////////////////////////////////////////////////////////////////
106
John Recke18264b2014-03-12 13:56:30 -0700107class RenderNode;
Romain Guybb0acdf2012-03-05 13:44:35 -0800108
Romain Guy79537452011-10-12 13:48:51 -0700109class ANDROID_API Caches: public Singleton<Caches> {
Chet Haasedd78cca2010-10-22 18:59:26 -0700110 Caches();
Romain Guyfb8b7632010-08-23 21:05:08 -0700111
112 friend class Singleton<Caches>;
113
Romain Guye190aa62010-11-10 19:01:29 -0800114 CacheLogger mLogger;
Romain Guy9bca4792010-10-25 18:42:25 -0700115
Romain Guyfb8b7632010-08-23 21:05:08 -0700116public:
Romain Guybdf76092011-07-18 15:00:43 -0700117 enum FlushMode {
Romain Guy6d7475d2011-07-27 16:28:21 -0700118 kFlushMode_Layers = 0,
119 kFlushMode_Moderate,
Romain Guybdf76092011-07-18 15:00:43 -0700120 kFlushMode_Full
121 };
122
123 /**
Romain Guydfa10462012-05-12 16:18:58 -0700124 * Initialize caches.
Romain Guy8ff6b9e2011-11-09 20:10:18 -0800125 */
Romain Guy3b748a42013-04-17 18:54:38 -0700126 bool init();
Romain Guy8ff6b9e2011-11-09 20:10:18 -0800127
128 /**
Romain Guy5bb3c732012-11-29 17:52:58 -0800129 * Initialize global system properties.
130 */
131 bool initProperties();
132
133 /**
Romain Guybdf76092011-07-18 15:00:43 -0700134 * Flush the cache.
135 *
136 * @param mode Indicates how much of the cache should be flushed
137 */
138 void flush(FlushMode mode);
139
Romain Guy5b3b3522010-10-27 18:57:51 -0700140 /**
Romain Guy8ff6b9e2011-11-09 20:10:18 -0800141 * Destroys all resources associated with this cache. This should
142 * be called after a flush(kFlushMode_Full).
143 */
144 void terminate();
145
146 /**
Romain Guye190aa62010-11-10 19:01:29 -0800147 * Indicates whether the renderer is in debug mode.
148 * This debug mode provides limited information to app developers.
149 */
150 DebugLevel getDebugLevel() const {
151 return mDebugLevel;
152 }
153
154 /**
Romain Guy627c6fd2013-08-21 11:53:18 -0700155 * Returns a non-premultiplied ARGB color for the specified
156 * amount of overdraw (1 for 1x, 2 for 2x, etc.)
157 */
158 uint32_t getOverdrawColor(uint32_t amount) const;
159
160 /**
Romain Guyfe48f652010-11-11 15:36:56 -0800161 * Call this on each frame to ensure that garbage is deleted from
162 * GPU memory.
163 */
164 void clearGarbage();
165
166 /**
Romain Guyada830f2011-01-13 12:13:20 -0800167 * Can be used to delete a layer from a non EGL thread.
Romain Guy57066eb2011-01-12 12:53:32 -0800168 */
Romain Guyada830f2011-01-13 12:13:20 -0800169 void deleteLayerDeferred(Layer* layer);
Romain Guy57066eb2011-01-12 12:53:32 -0800170
171 /**
Romain Guy5b3b3522010-10-27 18:57:51 -0700172 * Binds the VBO used to render simple textured quads.
173 */
Romain Guyf3a910b42011-12-12 20:35:21 -0800174 bool bindMeshBuffer();
Romain Guy5b3b3522010-10-27 18:57:51 -0700175
176 /**
177 * Binds the specified VBO if needed.
178 */
Romain Guyf3a910b42011-12-12 20:35:21 -0800179 bool bindMeshBuffer(const GLuint buffer);
Romain Guy5b3b3522010-10-27 18:57:51 -0700180
181 /**
182 * Unbinds the VBO used to render simple textured quads.
183 */
Romain Guyf3a910b42011-12-12 20:35:21 -0800184 bool unbindMeshBuffer();
185
Romain Guy3b748a42013-04-17 18:54:38 -0700186 /**
187 * Binds a global indices buffer that can draw up to
Romain Guy31e08e92013-06-18 15:53:53 -0700188 * gMaxNumberOfQuads quads.
Romain Guy3b748a42013-04-17 18:54:38 -0700189 */
ztenghui63d41ab2014-02-14 13:13:41 -0800190 bool bindQuadIndicesBuffer();
191 bool bindShadowIndicesBuffer();
Romain Guy15bc6432011-12-13 13:11:32 -0800192 bool unbindIndicesBuffer();
193
Romain Guyf3a910b42011-12-12 20:35:21 -0800194 /**
Romain Guycf51a412013-04-08 19:40:31 -0700195 * Binds the specified buffer as the current GL unpack pixel buffer.
196 */
197 bool bindPixelBuffer(const GLuint buffer);
198
199 /**
200 * Resets the current unpack pixel buffer to 0 (default value.)
201 */
202 bool unbindPixelBuffer();
203
204 /**
Romain Guyf3a910b42011-12-12 20:35:21 -0800205 * Binds an attrib to the specified float vertex pointer.
206 * Assumes a stride of gMeshStride and a size of 2.
207 */
ztenghui55bfb4e2013-12-03 10:38:55 -0800208 void bindPositionVertexPointer(bool force, const GLvoid* vertices, GLsizei stride = gMeshStride);
Romain Guyf3a910b42011-12-12 20:35:21 -0800209
210 /**
211 * Binds an attrib to the specified float vertex pointer.
212 * Assumes a stride of gMeshStride and a size of 2.
213 */
ztenghui55bfb4e2013-12-03 10:38:55 -0800214 void bindTexCoordsVertexPointer(bool force, const GLvoid* vertices, GLsizei stride = gMeshStride);
Romain Guyf3a910b42011-12-12 20:35:21 -0800215
216 /**
217 * Resets the vertex pointers.
218 */
219 void resetVertexPointers();
220 void resetTexCoordsVertexPointer();
Romain Guy03750a02010-10-18 14:06:08 -0700221
Romain Guy15bc6432011-12-13 13:11:32 -0800222 void enableTexCoordsVertexArray();
Romain Guyff316ec2013-02-13 18:39:43 -0800223 void disableTexCoordsVertexArray();
Romain Guy15bc6432011-12-13 13:11:32 -0800224
Romain Guy5b3b3522010-10-27 18:57:51 -0700225 /**
Romain Guya1d3c912011-12-13 14:55:06 -0800226 * Activate the specified texture unit. The texture unit must
227 * be specified using an integer number (0 for GL_TEXTURE0 etc.)
228 */
229 void activeTexture(GLuint textureUnit);
230
231 /**
Chris Craik9ab2d182013-07-22 16:16:06 -0700232 * Invalidate the cached value of the active texture unit.
233 */
234 void resetActiveTexture();
235
236 /**
Romain Guy8aa195d2013-06-04 18:00:09 -0700237 * Binds the specified texture as a GL_TEXTURE_2D texture.
Romain Guybe1b1272013-06-06 14:02:54 -0700238 * All texture bindings must be performed with this method or
239 * bindTexture(GLenum, GLuint).
Romain Guy8aa195d2013-06-04 18:00:09 -0700240 */
241 void bindTexture(GLuint texture);
242
243 /**
Romain Guybe1b1272013-06-06 14:02:54 -0700244 * Binds the specified texture with the specified render target.
245 * All texture bindings must be performed with this method or
246 * bindTexture(GLuint).
Romain Guy8aa195d2013-06-04 18:00:09 -0700247 */
248 void bindTexture(GLenum target, GLuint texture);
249
250 /**
Romain Guybe1b1272013-06-06 14:02:54 -0700251 * Deletes the specified texture and clears it from the cache
252 * of bound textures.
253 * All textures must be deleted using this method.
254 */
255 void deleteTexture(GLuint texture);
256
257 /**
Romain Guy8aa195d2013-06-04 18:00:09 -0700258 * Signals that the cache of bound textures should be cleared.
259 * Other users of the context may have altered which textures are bound.
260 */
261 void resetBoundTextures();
262
263 /**
jiayuanr4a473c7d2014-06-10 17:41:49 +0800264 * Clear the cache of bound textures.
265 */
266 void unbindTexture(GLuint texture);
267
268 /**
Romain Guy8f85e802011-12-14 19:23:32 -0800269 * Sets the scissor for the current surface.
270 */
Romain Guy8a4ac612012-07-17 17:32:48 -0700271 bool setScissor(GLint x, GLint y, GLint width, GLint height);
Romain Guy8f85e802011-12-14 19:23:32 -0800272
273 /**
Romain Guy82bc7a72012-01-03 14:13:39 -0800274 * Resets the scissor state.
275 */
276 void resetScissor();
277
Romain Guy8a4ac612012-07-17 17:32:48 -0700278 bool enableScissor();
279 bool disableScissor();
Romain Guy586cae32012-07-13 15:28:31 -0700280 void setScissorEnabled(bool enabled);
281
Romain Guyef359272013-01-31 19:07:29 -0800282 void startTiling(GLuint x, GLuint y, GLuint width, GLuint height, bool discard);
Romain Guy85ef80d2012-09-13 20:26:50 -0700283 void endTiling();
284
Romain Guy82bc7a72012-01-03 14:13:39 -0800285 /**
Romain Guy5b3b3522010-10-27 18:57:51 -0700286 * Returns the mesh used to draw regions. Calling this method will
287 * bind a VBO of type GL_ELEMENT_ARRAY_BUFFER that contains the
288 * indices for the region mesh.
289 */
290 TextureVertex* getRegionMesh();
291
Romain Guyc15008e2010-11-10 11:59:15 -0800292 /**
293 * Displays the memory usage of each cache and the total sum.
294 */
295 void dumpMemoryUsage();
Chet Haase9c1e23b2011-03-24 10:51:31 -0700296 void dumpMemoryUsage(String8& log);
Romain Guyc15008e2010-11-10 11:59:15 -0800297
Romain Guy54c1a642012-09-27 17:55:46 -0700298 bool hasRegisteredFunctors();
299 void registerFunctors(uint32_t functorCount);
300 void unregisterFunctors(uint32_t functorCount);
301
Romain Guyfb8b7632010-08-23 21:05:08 -0700302 bool blend;
303 GLenum lastSrcMode;
304 GLenum lastDstMode;
305 Program* currentProgram;
Romain Guy586cae32012-07-13 15:28:31 -0700306 bool scissorEnabled;
Romain Guyfb8b7632010-08-23 21:05:08 -0700307
Romain Guy0f6675332013-03-01 14:31:04 -0800308 bool drawDeferDisabled;
309 bool drawReorderDisabled;
310
Romain Guy746b7402010-10-26 16:27:31 -0700311 // VBO to draw with
Romain Guy03750a02010-10-18 14:06:08 -0700312 GLuint meshBuffer;
Romain Guy03750a02010-10-18 14:06:08 -0700313
Romain Guy746b7402010-10-26 16:27:31 -0700314 // Misc
315 GLint maxTextureSize;
Romain Guy3ff0bfd2013-02-25 14:15:37 -0800316
317 // Debugging
Romain Guy4ff0cf42012-08-06 14:51:10 -0700318 bool debugLayersUpdates;
Romain Guy7c450aa2012-09-21 19:15:00 -0700319 bool debugOverdraw;
Romain Guy746b7402010-10-26 16:27:31 -0700320
Romain Guy3ff0bfd2013-02-25 14:15:37 -0800321 enum StencilClipDebug {
322 kStencilHide,
323 kStencilShowHighlight,
324 kStencilShowRegion
325 };
326 StencilClipDebug debugStencilClip;
327
Romain Guyfb8b7632010-08-23 21:05:08 -0700328 TextureCache textureCache;
329 LayerCache layerCache;
Romain Guy8d4aeb72013-02-12 16:08:55 -0800330 RenderBufferCache renderBufferCache;
Romain Guyfb8b7632010-08-23 21:05:08 -0700331 GradientCache gradientCache;
332 ProgramCache programCache;
333 PathCache pathCache;
334 PatchCache patchCache;
Chris Craik05f3d6e2014-06-02 16:27:04 -0700335 TessellationCache tessellationCache;
Romain Guyfb8b7632010-08-23 21:05:08 -0700336 TextDropShadowCache dropShadowCache;
Romain Guye2d345e2010-09-24 18:39:22 -0700337 FboCache fboCache;
Chet Haase5c13d892010-10-08 08:37:55 -0700338 ResourceCache resourceCache;
Romain Guy29d89972010-09-22 16:10:57 -0700339
Romain Guyb1d0a4e2012-07-13 18:25:35 -0700340 GammaFontRenderer* fontRenderer;
341
Romain Guy5dc7fa72013-03-11 20:48:31 -0700342 TaskManager tasks;
343
Romain Guy0baaac52012-08-31 20:31:01 -0700344 Dither dither;
Romain Guy0baaac52012-08-31 20:31:01 -0700345 Stencil stencil;
Romain Guy0baaac52012-08-31 20:31:01 -0700346
Romain Guy3b748a42013-04-17 18:54:38 -0700347 AssetAtlas assetAtlas;
348
Romain Guyf9f00162013-05-09 11:50:12 -0700349 bool gpuPixelBuffersEnabled;
350
Romain Guydfa10462012-05-12 16:18:58 -0700351 // Debug methods
Romain Guy13631f32012-01-30 17:41:55 -0800352 PFNGLINSERTEVENTMARKEREXTPROC eventMark;
353 PFNGLPUSHGROUPMARKEREXTPROC startMark;
354 PFNGLPOPGROUPMARKEREXTPROC endMark;
355
Romain Guydfa10462012-05-12 16:18:58 -0700356 PFNGLLABELOBJECTEXTPROC setLabel;
357 PFNGLGETOBJECTLABELEXTPROC getLabel;
358
Chris Craikba9b6132013-12-15 17:10:19 -0800359 // TEMPORARY properties
360 void initTempProperties();
361 void setTempProperty(const char* name, const char* value);
ztenghuicc3c2562014-01-17 10:34:10 -0800362
Chris Craikf5be3ca2014-04-30 18:20:03 -0700363 float propertyLightDiameter;
364 float propertyLightPosY;
365 float propertyLightPosZ;
366 float propertyAmbientRatio;
ztenghuief94c6f2014-02-13 17:09:45 -0800367 int propertyAmbientShadowStrength;
368 int propertySpotShadowStrength;
Chris Craikba9b6132013-12-15 17:10:19 -0800369
Romain Guye190aa62010-11-10 19:01:29 -0800370private:
Romain Guy627c6fd2013-08-21 11:53:18 -0700371 enum OverdrawColorSet {
372 kColorSet_Default = 0,
373 kColorSet_Deuteranomaly
374 };
375
Romain Guyb1d0a4e2012-07-13 18:25:35 -0700376 void initFont();
Romain Guydfa10462012-05-12 16:18:58 -0700377 void initExtensions();
378 void initConstraints();
Romain Guyf9f00162013-05-09 11:50:12 -0700379 void initStaticProperties();
Romain Guydfa10462012-05-12 16:18:58 -0700380
ztenghui63d41ab2014-02-14 13:13:41 -0800381 bool bindIndicesBufferInternal(const GLuint buffer);
382
Romain Guydfa10462012-05-12 16:18:58 -0700383 static void eventMarkNull(GLsizei length, const GLchar* marker) { }
384 static void startMarkNull(GLsizei length, const GLchar* marker) { }
Romain Guy13631f32012-01-30 17:41:55 -0800385 static void endMarkNull() { }
386
Romain Guydfa10462012-05-12 16:18:58 -0700387 static void setLabelNull(GLenum type, uint object, GLsizei length,
388 const char* label) { }
389 static void getLabelNull(GLenum type, uint object, GLsizei bufferSize,
390 GLsizei* length, char* label) {
391 if (length) *length = 0;
392 if (label) *label = '\0';
393 }
394
Romain Guyf3a910b42011-12-12 20:35:21 -0800395 GLuint mCurrentBuffer;
Romain Guy15bc6432011-12-13 13:11:32 -0800396 GLuint mCurrentIndicesBuffer;
Romain Guycf51a412013-04-08 19:40:31 -0700397 GLuint mCurrentPixelBuffer;
ztenghui55bfb4e2013-12-03 10:38:55 -0800398 const void* mCurrentPositionPointer;
Chris Craik16b897c2012-09-27 13:10:56 -0700399 GLsizei mCurrentPositionStride;
ztenghui55bfb4e2013-12-03 10:38:55 -0800400 const void* mCurrentTexCoordsPointer;
Romain Guyff316ec2013-02-13 18:39:43 -0800401 GLsizei mCurrentTexCoordsStride;
Romain Guyf3a910b42011-12-12 20:35:21 -0800402
Romain Guy15bc6432011-12-13 13:11:32 -0800403 bool mTexCoordsArrayEnabled;
404
Romain Guya1d3c912011-12-13 14:55:06 -0800405 GLuint mTextureUnit;
406
Romain Guy8f85e802011-12-14 19:23:32 -0800407 GLint mScissorX;
408 GLint mScissorY;
409 GLint mScissorWidth;
410 GLint mScissorHeight;
411
Romain Guy3bbacf22013-02-06 16:51:04 -0800412 Extensions& mExtensions;
413
Romain Guyf3a910b42011-12-12 20:35:21 -0800414 // Used to render layers
415 TextureVertex* mRegionMesh;
Romain Guy3b748a42013-04-17 18:54:38 -0700416
417 // Global index buffer
418 GLuint mMeshIndices;
ztenghui63d41ab2014-02-14 13:13:41 -0800419 GLuint mShadowStripsIndices;
Romain Guyf3a910b42011-12-12 20:35:21 -0800420
421 mutable Mutex mGarbageLock;
422 Vector<Layer*> mLayerGarbage;
423
Romain Guye190aa62010-11-10 19:01:29 -0800424 DebugLevel mDebugLevel;
Romain Guy8ff6b9e2011-11-09 20:10:18 -0800425 bool mInitialized;
Romain Guy54c1a642012-09-27 17:55:46 -0700426
427 uint32_t mFunctorsCount;
Romain Guy8aa195d2013-06-04 18:00:09 -0700428
429 GLuint mBoundTextures[REQUIRED_TEXTURE_UNITS_COUNT];
Romain Guy627c6fd2013-08-21 11:53:18 -0700430
431 OverdrawColorSet mOverdrawDebugColorSet;
Romain Guyfb8b7632010-08-23 21:05:08 -0700432}; // class Caches
433
434}; // namespace uirenderer
Romain Guyfb8b7632010-08-23 21:05:08 -0700435}; // namespace android
436
Romain Guy5b3b3522010-10-27 18:57:51 -0700437#endif // ANDROID_HWUI_CACHES_H