blob: 97a25085830de9d6b843b53e2bbb6333d4629930 [file] [log] [blame]
Romain Guy4aa90572010-09-26 18:40:37 -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_DISPLAY_LIST_RENDERER_H
18#define ANDROID_HWUI_DISPLAY_LIST_RENDERER_H
Romain Guy4aa90572010-09-26 18:40:37 -070019
Romain Guy4aa90572010-09-26 18:40:37 -070020#include <SkMatrix.h>
21#include <SkPaint.h>
22#include <SkPath.h>
Romain Guy79537452011-10-12 13:48:51 -070023#include <cutils/compiler.h>
24
Chris Craik0776a602013-02-14 15:36:01 -080025#include "DisplayList.h"
Chet Haase9c1e23b2011-03-24 10:51:31 -070026#include "DisplayListLogBuffer.h"
Romain Guy4aa90572010-09-26 18:40:37 -070027#include "OpenGLRenderer.h"
28
29namespace android {
30namespace uirenderer {
31
32///////////////////////////////////////////////////////////////////////////////
33// Defines
34///////////////////////////////////////////////////////////////////////////////
35
Romain Guy6d7475d2011-07-27 16:28:21 -070036#define MIN_WRITER_SIZE 4096
Romain Guy33f6beb2012-02-16 19:24:51 -080037#define OP_MAY_BE_SKIPPED_MASK 0xff000000
Romain Guy4aa90572010-09-26 18:40:37 -070038
Romain Guyffac7fc2011-01-13 17:21:49 -080039// Debug
40#if DEBUG_DISPLAY_LIST
Steve Block5baa3a62011-12-20 16:23:08 +000041 #define DISPLAY_LIST_LOGD(...) ALOGD(__VA_ARGS__)
Romain Guyffac7fc2011-01-13 17:21:49 -080042#else
43 #define DISPLAY_LIST_LOGD(...)
44#endif
45
Romain Guy4aa90572010-09-26 18:40:37 -070046///////////////////////////////////////////////////////////////////////////////
Romain Guyb051e892010-09-28 19:09:36 -070047// Display list
Romain Guy4aa90572010-09-26 18:40:37 -070048///////////////////////////////////////////////////////////////////////////////
49
Romain Guyb051e892010-09-28 19:09:36 -070050class DisplayListRenderer;
Chris Craik2af46352012-11-26 18:30:17 -080051class DisplayListOp;
52class DrawOp;
53class StateOp;
54
Romain Guyb051e892010-09-28 19:09:36 -070055///////////////////////////////////////////////////////////////////////////////
56// Renderer
57///////////////////////////////////////////////////////////////////////////////
58
59/**
60 * Records drawing commands in a display list for latter playback.
61 */
62class DisplayListRenderer: public OpenGLRenderer {
63public:
Romain Guy79537452011-10-12 13:48:51 -070064 ANDROID_API DisplayListRenderer();
65 virtual ~DisplayListRenderer();
Romain Guyb051e892010-09-28 19:09:36 -070066
Romain Guy79537452011-10-12 13:48:51 -070067 ANDROID_API DisplayList* getDisplayList(DisplayList* displayList);
Chet Haase5977baa2011-01-05 18:01:22 -080068
Romain Guy49c5fc02012-05-15 11:10:01 -070069 virtual bool isDeferred();
70
Romain Guy79537452011-10-12 13:48:51 -070071 virtual void setViewport(int width, int height);
Romain Guy7c25aab2012-10-18 15:05:02 -070072 virtual status_t prepareDirty(float left, float top, float right, float bottom, bool opaque);
Romain Guy79537452011-10-12 13:48:51 -070073 virtual void finish();
Romain Guyb051e892010-09-28 19:09:36 -070074
Romain Guy65549432012-03-26 16:45:05 -070075 virtual status_t callDrawGLFunction(Functor *functor, Rect& dirty);
Romain Guy4aa90572010-09-26 18:40:37 -070076
Romain Guy79537452011-10-12 13:48:51 -070077 virtual void interrupt();
78 virtual void resume();
Chet Haasedaf98e92011-01-10 14:10:36 -080079
Romain Guy79537452011-10-12 13:48:51 -070080 virtual int save(int flags);
81 virtual void restore();
82 virtual void restoreToCount(int saveCount);
Romain Guy4aa90572010-09-26 18:40:37 -070083
Romain Guy79537452011-10-12 13:48:51 -070084 virtual int saveLayer(float left, float top, float right, float bottom,
Chet Haase5c13d892010-10-08 08:37:55 -070085 SkPaint* p, int flags);
Romain Guy79537452011-10-12 13:48:51 -070086 virtual int saveLayerAlpha(float left, float top, float right, float bottom,
Romain Guy5b3b3522010-10-27 18:57:51 -070087 int alpha, int flags);
Romain Guy4aa90572010-09-26 18:40:37 -070088
Romain Guy79537452011-10-12 13:48:51 -070089 virtual void translate(float dx, float dy);
90 virtual void rotate(float degrees);
91 virtual void scale(float sx, float sy);
92 virtual void skew(float sx, float sy);
Romain Guy4aa90572010-09-26 18:40:37 -070093
Romain Guy79537452011-10-12 13:48:51 -070094 virtual void setMatrix(SkMatrix* matrix);
95 virtual void concatMatrix(SkMatrix* matrix);
Romain Guy4aa90572010-09-26 18:40:37 -070096
Romain Guy79537452011-10-12 13:48:51 -070097 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
Romain Guy735738c2012-12-03 12:34:51 -080098 virtual bool clipPath(SkPath* path, SkRegion::Op op);
99 virtual bool clipRegion(SkRegion* region, SkRegion::Op op);
Romain Guy4aa90572010-09-26 18:40:37 -0700100
Chet Haase1271e2c2012-04-20 09:54:27 -0700101 virtual status_t drawDisplayList(DisplayList* displayList, Rect& dirty, int32_t flags,
102 uint32_t level = 0);
Chet Haase48659092012-05-31 15:21:51 -0700103 virtual status_t drawLayer(Layer* layer, float x, float y, SkPaint* paint);
104 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint);
105 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint);
106 virtual status_t drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop,
Romain Guy4aa90572010-09-26 18:40:37 -0700107 float srcRight, float srcBottom, float dstLeft, float dstTop,
Chet Haase5c13d892010-10-08 08:37:55 -0700108 float dstRight, float dstBottom, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700109 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint);
110 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight,
Romain Guy5a7b4662011-01-20 19:09:30 -0800111 float* vertices, int* colors, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700112 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
Romain Guy4bb94202010-10-12 15:59:26 -0700113 const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors,
Chet Haase5c13d892010-10-08 08:37:55 -0700114 float left, float top, float right, float bottom, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700115 virtual status_t drawColor(int color, SkXfermode::Mode mode);
116 virtual status_t drawRect(float left, float top, float right, float bottom, SkPaint* paint);
117 virtual status_t drawRoundRect(float left, float top, float right, float bottom,
Romain Guy01d58e42011-01-19 21:54:02 -0800118 float rx, float ry, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700119 virtual status_t drawCircle(float x, float y, float radius, SkPaint* paint);
120 virtual status_t drawOval(float left, float top, float right, float bottom, SkPaint* paint);
121 virtual status_t drawArc(float left, float top, float right, float bottom,
Romain Guy8b2f5262011-01-23 16:15:02 -0800122 float startAngle, float sweepAngle, bool useCenter, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700123 virtual status_t drawPath(SkPath* path, SkPaint* paint);
124 virtual status_t drawLines(float* points, int count, SkPaint* paint);
125 virtual status_t drawPoints(float* points, int count, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700126 virtual status_t drawTextOnPath(const char* text, int bytesCount, int count, SkPath* path,
Romain Guy325740f2012-02-24 16:48:34 -0800127 float hOffset, float vOffset, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700128 virtual status_t drawPosText(const char* text, int bytesCount, int count,
129 const float* positions, SkPaint* paint);
Romain Guyc2525952012-07-27 16:41:22 -0700130 virtual status_t drawText(const char* text, int bytesCount, int count,
Raph Levien996e57c2012-07-23 15:22:52 -0700131 float x, float y, const float* positions, SkPaint* paint, float length);
Romain Guy672433d2013-01-04 19:05:13 -0800132 virtual status_t drawRects(const float* rects, int count, SkPaint* paint);
Romain Guy4aa90572010-09-26 18:40:37 -0700133
Romain Guy79537452011-10-12 13:48:51 -0700134 virtual void resetShader();
135 virtual void setupShader(SkiaShader* shader);
Romain Guy4aa90572010-09-26 18:40:37 -0700136
Romain Guy79537452011-10-12 13:48:51 -0700137 virtual void resetColorFilter();
138 virtual void setupColorFilter(SkiaColorFilter* filter);
Romain Guy4aa90572010-09-26 18:40:37 -0700139
Romain Guy79537452011-10-12 13:48:51 -0700140 virtual void resetShadow();
141 virtual void setupShadow(float radius, float dx, float dy, int color);
Romain Guy4aa90572010-09-26 18:40:37 -0700142
Romain Guy5ff9df62012-01-23 17:09:05 -0800143 virtual void resetPaintFilter();
144 virtual void setupPaintFilter(int clearBits, int setBits);
145
Romain Guy79537452011-10-12 13:48:51 -0700146 ANDROID_API void reset();
Romain Guy4aa90572010-09-26 18:40:37 -0700147
Chris Craik2af46352012-11-26 18:30:17 -0800148 sp<DisplayListData> getDisplayListData() const {
149 return mDisplayListData;
Romain Guyb051e892010-09-28 19:09:36 -0700150 }
151
Chet Haase5c13d892010-10-08 08:37:55 -0700152 const Vector<SkBitmap*>& getBitmapResources() const {
153 return mBitmapResources;
Romain Guyb051e892010-09-28 19:09:36 -0700154 }
155
Romain Guy49c5fc02012-05-15 11:10:01 -0700156 const Vector<SkBitmap*>& getOwnedBitmapResources() const {
157 return mOwnedBitmapResources;
158 }
159
Romain Guyd586ad92011-06-22 16:14:36 -0700160 const Vector<SkiaColorFilter*>& getFilterResources() const {
161 return mFilterResources;
162 }
163
Romain Guy24c00212011-01-14 15:31:00 -0800164 const Vector<SkiaShader*>& getShaders() const {
165 return mShaders;
Romain Guyb051e892010-09-28 19:09:36 -0700166 }
167
Chet Haased98aa2d2010-10-25 15:47:32 -0700168 const Vector<SkPaint*>& getPaints() const {
169 return mPaints;
170 }
171
Romain Guy2fc941e2011-02-03 15:06:05 -0800172 const Vector<SkPath*>& getPaths() const {
173 return mPaths;
174 }
175
Chet Haased34dd712012-05-02 18:50:34 -0700176 const SortedVector<SkPath*>& getSourcePaths() const {
177 return mSourcePaths;
178 }
179
Romain Guy735738c2012-12-03 12:34:51 -0800180 const Vector<SkRegion*>& getRegions() const {
181 return mRegions;
182 }
183
Chet Haase603f6de2012-09-14 15:31:25 -0700184 const Vector<Layer*>& getLayers() const {
185 return mLayers;
186 }
187
Chet Haased98aa2d2010-10-25 15:47:32 -0700188 const Vector<SkMatrix*>& getMatrices() const {
189 return mMatrices;
190 }
191
Romain Guy54c1a642012-09-27 17:55:46 -0700192 uint32_t getFunctorCount() const {
193 return mFunctorCount;
194 }
195
Romain Guy4aa90572010-09-26 18:40:37 -0700196private:
Chris Craik2af46352012-11-26 18:30:17 -0800197 void insertRestoreToCount();
198 void insertTranslate();
Romain Guy27454a42011-01-23 12:01:41 -0800199
Chris Craik2af46352012-11-26 18:30:17 -0800200 LinearAllocator& alloc() { return mDisplayListData->allocator; }
201 void addStateOp(StateOp* op);
202 bool addDrawOp(DrawOp* op); // returns true if op not rejected
203 void addOpInternal(DisplayListOp* op) {
Romain Guy27454a42011-01-23 12:01:41 -0800204 insertRestoreToCount();
Chris Craik2af46352012-11-26 18:30:17 -0800205 insertTranslate();
206 mDisplayListData->displayListOps.add(op);
Romain Guy4aa90572010-09-26 18:40:37 -0700207 }
208
Chris Craik2af46352012-11-26 18:30:17 -0800209 template<class T>
210 inline T* refBuffer(const T* srcBuffer, int32_t count) {
211 if (srcBuffer == NULL) return NULL;
212 T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T));
213 memcpy(dstBuffer, srcBuffer, count * sizeof(T));
214 return dstBuffer;
Romain Guy33f6beb2012-02-16 19:24:51 -0800215 }
216
Chris Craik2af46352012-11-26 18:30:17 -0800217 inline char* refText(const char* text, size_t byteLength) {
218 return (char*) refBuffer<uint8_t>((uint8_t*)text, byteLength);
Romain Guy33f6beb2012-02-16 19:24:51 -0800219 }
220
Chris Craik2af46352012-11-26 18:30:17 -0800221 inline SkPath* refPath(SkPath* path) {
222 if (!path) return NULL;
Romain Guy2fc941e2011-02-03 15:06:05 -0800223
224 SkPath* pathCopy = mPathMap.valueFor(path);
225 if (pathCopy == NULL || pathCopy->getGenerationID() != path->getGenerationID()) {
Romain Guyb29cfbf2011-03-18 16:24:19 -0700226 pathCopy = new SkPath(*path);
Romain Guy4bcb7462012-02-23 17:08:38 -0800227 pathCopy->setSourcePath(path);
Romain Guy96ebc6b2012-02-21 18:32:32 -0800228 // replaceValueFor() performs an add if the entry doesn't exist
229 mPathMap.replaceValueFor(path, pathCopy);
Romain Guyb29cfbf2011-03-18 16:24:19 -0700230 mPaths.add(pathCopy);
Romain Guy2fc941e2011-02-03 15:06:05 -0800231 }
Chet Haased34dd712012-05-02 18:50:34 -0700232 if (mSourcePaths.indexOf(path) < 0) {
Romain Guy58ecc202012-09-07 11:58:36 -0700233 mCaches.resourceCache.incrementRefcount(path);
Chet Haased34dd712012-05-02 18:50:34 -0700234 mSourcePaths.add(path);
235 }
Chris Craik2af46352012-11-26 18:30:17 -0800236 return pathCopy;
Romain Guy4aa90572010-09-26 18:40:37 -0700237 }
238
Chris Craik2af46352012-11-26 18:30:17 -0800239 inline SkPaint* refPaint(SkPaint* paint) {
Romain Guy24c00212011-01-14 15:31:00 -0800240 if (!paint) {
Chet Haasee816bae2012-08-09 13:39:02 -0700241 return paint;
Chet Haased98aa2d2010-10-25 15:47:32 -0700242 }
Romain Guy0fe478e2010-11-08 12:08:41 -0800243
Romain Guy22d41842012-01-19 18:33:25 -0800244 SkPaint* paintCopy = mPaintMap.valueFor(paint);
Chet Haased98aa2d2010-10-25 15:47:32 -0700245 if (paintCopy == NULL || paintCopy->getGenerationID() != paint->getGenerationID()) {
246 paintCopy = new SkPaint(*paint);
Romain Guy96ebc6b2012-02-21 18:32:32 -0800247 // replaceValueFor() performs an add if the entry doesn't exist
248 mPaintMap.replaceValueFor(paint, paintCopy);
Chet Haased98aa2d2010-10-25 15:47:32 -0700249 mPaints.add(paintCopy);
250 }
Romain Guy0fe478e2010-11-08 12:08:41 -0800251
Chet Haasee816bae2012-08-09 13:39:02 -0700252 return paintCopy;
Romain Guy0fe478e2010-11-08 12:08:41 -0800253 }
254
Chris Craik2af46352012-11-26 18:30:17 -0800255 inline SkRegion* refRegion(SkRegion* region) {
Romain Guy735738c2012-12-03 12:34:51 -0800256 if (!region) {
Romain Guy735738c2012-12-03 12:34:51 -0800257 return region;
258 }
259
260 SkRegion* regionCopy = mRegionMap.valueFor(region);
261 // TODO: Add generation ID to SkRegion
262 if (regionCopy == NULL) {
263 regionCopy = new SkRegion(*region);
264 // replaceValueFor() performs an add if the entry doesn't exist
265 mRegionMap.replaceValueFor(region, regionCopy);
266 mRegions.add(regionCopy);
267 }
268
Romain Guy735738c2012-12-03 12:34:51 -0800269 return regionCopy;
270 }
271
Chris Craik2af46352012-11-26 18:30:17 -0800272 inline SkMatrix* refMatrix(SkMatrix* matrix) {
Chet Haased98aa2d2010-10-25 15:47:32 -0700273 // Copying the matrix is cheap and prevents against the user changing the original
274 // matrix before the operation that uses it
Romain Guyf6a63ae2011-06-22 15:13:09 -0700275 SkMatrix* copy = new SkMatrix(*matrix);
Romain Guyf6a63ae2011-06-22 15:13:09 -0700276 mMatrices.add(copy);
Chris Craik2af46352012-11-26 18:30:17 -0800277 return copy;
Romain Guy4aa90572010-09-26 18:40:37 -0700278 }
279
Chris Craik2af46352012-11-26 18:30:17 -0800280 inline SkBitmap* refBitmap(SkBitmap* bitmap) {
Chet Haased98aa2d2010-10-25 15:47:32 -0700281 // Note that this assumes the bitmap is immutable. There are cases this won't handle
282 // correctly, such as creating the bitmap from scratch, drawing with it, changing its
283 // contents, and drawing again. The only fix would be to always copy it the first time,
284 // which doesn't seem worth the extra cycles for this unlikely case.
Chet Haase5c13d892010-10-08 08:37:55 -0700285 mBitmapResources.add(bitmap);
Romain Guy58ecc202012-09-07 11:58:36 -0700286 mCaches.resourceCache.incrementRefcount(bitmap);
Chris Craik2af46352012-11-26 18:30:17 -0800287 return bitmap;
Chet Haase5c13d892010-10-08 08:37:55 -0700288 }
Romain Guy4aa90572010-09-26 18:40:37 -0700289
Chris Craik2af46352012-11-26 18:30:17 -0800290 inline SkBitmap* refBitmapData(SkBitmap* bitmap) {
Romain Guy49c5fc02012-05-15 11:10:01 -0700291 mOwnedBitmapResources.add(bitmap);
Romain Guy58ecc202012-09-07 11:58:36 -0700292 mCaches.resourceCache.incrementRefcount(bitmap);
Chris Craik2af46352012-11-26 18:30:17 -0800293 return bitmap;
Romain Guy49c5fc02012-05-15 11:10:01 -0700294 }
295
Chris Craik2af46352012-11-26 18:30:17 -0800296 inline SkiaShader* refShader(SkiaShader* shader) {
297 if (!shader) return NULL;
Romain Guy24c00212011-01-14 15:31:00 -0800298
299 SkiaShader* shaderCopy = mShaderMap.valueFor(shader);
300 // TODO: We also need to handle generation ID changes in compose shaders
Romain Guy1f1fcb72011-01-14 15:37:54 -0800301 if (shaderCopy == NULL || shaderCopy->getGenerationId() != shader->getGenerationId()) {
Romain Guy24c00212011-01-14 15:31:00 -0800302 shaderCopy = shader->copy();
Romain Guy96ebc6b2012-02-21 18:32:32 -0800303 // replaceValueFor() performs an add if the entry doesn't exist
304 mShaderMap.replaceValueFor(shader, shaderCopy);
Romain Guy1f1fcb72011-01-14 15:37:54 -0800305 mShaders.add(shaderCopy);
Romain Guy58ecc202012-09-07 11:58:36 -0700306 mCaches.resourceCache.incrementRefcount(shaderCopy);
Romain Guy24c00212011-01-14 15:31:00 -0800307 }
Chris Craik2af46352012-11-26 18:30:17 -0800308 return shaderCopy;
Romain Guy4aa90572010-09-26 18:40:37 -0700309 }
310
Chris Craik2af46352012-11-26 18:30:17 -0800311 inline SkiaColorFilter* refColorFilter(SkiaColorFilter* colorFilter) {
Chet Haasead93c2b2010-10-22 16:17:12 -0700312 mFilterResources.add(colorFilter);
Romain Guy58ecc202012-09-07 11:58:36 -0700313 mCaches.resourceCache.incrementRefcount(colorFilter);
Chris Craik2af46352012-11-26 18:30:17 -0800314 return colorFilter;
Chet Haasead93c2b2010-10-22 16:17:12 -0700315 }
316
Chet Haase5c13d892010-10-08 08:37:55 -0700317 Vector<SkBitmap*> mBitmapResources;
Romain Guy49c5fc02012-05-15 11:10:01 -0700318 Vector<SkBitmap*> mOwnedBitmapResources;
Chet Haasead93c2b2010-10-22 16:17:12 -0700319 Vector<SkiaColorFilter*> mFilterResources;
Romain Guy4aa90572010-09-26 18:40:37 -0700320
Chet Haased98aa2d2010-10-25 15:47:32 -0700321 Vector<SkPaint*> mPaints;
Romain Guy0fe478e2010-11-08 12:08:41 -0800322 DefaultKeyedVector<SkPaint*, SkPaint*> mPaintMap;
Romain Guy24c00212011-01-14 15:31:00 -0800323
Romain Guy2fc941e2011-02-03 15:06:05 -0800324 Vector<SkPath*> mPaths;
325 DefaultKeyedVector<SkPath*, SkPath*> mPathMap;
326
Chet Haased34dd712012-05-02 18:50:34 -0700327 SortedVector<SkPath*> mSourcePaths;
328
Romain Guy735738c2012-12-03 12:34:51 -0800329 Vector<SkRegion*> mRegions;
330 DefaultKeyedVector<SkRegion*, SkRegion*> mRegionMap;
331
Romain Guy24c00212011-01-14 15:31:00 -0800332 Vector<SkiaShader*> mShaders;
333 DefaultKeyedVector<SkiaShader*, SkiaShader*> mShaderMap;
334
Chet Haased98aa2d2010-10-25 15:47:32 -0700335 Vector<SkMatrix*> mMatrices;
336
Chet Haase603f6de2012-09-14 15:31:25 -0700337 Vector<Layer*> mLayers;
338
Romain Guy27454a42011-01-23 12:01:41 -0800339 int mRestoreSaveCount;
Romain Guy33f6beb2012-02-16 19:24:51 -0800340
Romain Guy58ecc202012-09-07 11:58:36 -0700341 Caches& mCaches;
Chris Craik2af46352012-11-26 18:30:17 -0800342 sp<DisplayListData> mDisplayListData;
Romain Guy58ecc202012-09-07 11:58:36 -0700343
Romain Guy33f6beb2012-02-16 19:24:51 -0800344 float mTranslateX;
345 float mTranslateY;
346 bool mHasTranslate;
Romain Guy04c9d8c2011-08-25 14:01:48 -0700347 bool mHasDrawOps;
Romain Guy27454a42011-01-23 12:01:41 -0800348
Romain Guy54c1a642012-09-27 17:55:46 -0700349 uint32_t mFunctorCount;
350
Romain Guyb051e892010-09-28 19:09:36 -0700351 friend class DisplayList;
352
Romain Guy4aa90572010-09-26 18:40:37 -0700353}; // class DisplayListRenderer
354
355}; // namespace uirenderer
356}; // namespace android
357
Romain Guy5b3b3522010-10-27 18:57:51 -0700358#endif // ANDROID_HWUI_DISPLAY_LIST_RENDERER_H