blob: 75abad6d579669434f7369c3762389c2389ff00d [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
Chris Craikc3566d02013-02-04 16:16:33 -080050class DeferredDisplayList;
Romain Guyb051e892010-09-28 19:09:36 -070051class DisplayListRenderer;
Chris Craik2af46352012-11-26 18:30:17 -080052class DisplayListOp;
53class DrawOp;
54class StateOp;
55
Romain Guyb051e892010-09-28 19:09:36 -070056/**
57 * Records drawing commands in a display list for latter playback.
58 */
59class DisplayListRenderer: public OpenGLRenderer {
60public:
Romain Guy79537452011-10-12 13:48:51 -070061 ANDROID_API DisplayListRenderer();
62 virtual ~DisplayListRenderer();
Romain Guyb051e892010-09-28 19:09:36 -070063
Romain Guy79537452011-10-12 13:48:51 -070064 ANDROID_API DisplayList* getDisplayList(DisplayList* displayList);
Chet Haase5977baa2011-01-05 18:01:22 -080065
Romain Guy49c5fc02012-05-15 11:10:01 -070066 virtual bool isDeferred();
67
Romain Guy79537452011-10-12 13:48:51 -070068 virtual void setViewport(int width, int height);
Romain Guy7c25aab2012-10-18 15:05:02 -070069 virtual status_t prepareDirty(float left, float top, float right, float bottom, bool opaque);
Romain Guy79537452011-10-12 13:48:51 -070070 virtual void finish();
Romain Guyb051e892010-09-28 19:09:36 -070071
Romain Guy65549432012-03-26 16:45:05 -070072 virtual status_t callDrawGLFunction(Functor *functor, Rect& dirty);
Romain Guy4aa90572010-09-26 18:40:37 -070073
Romain Guy79537452011-10-12 13:48:51 -070074 virtual void interrupt();
75 virtual void resume();
Chet Haasedaf98e92011-01-10 14:10:36 -080076
Romain Guy79537452011-10-12 13:48:51 -070077 virtual int save(int flags);
78 virtual void restore();
79 virtual void restoreToCount(int saveCount);
Romain Guy4aa90572010-09-26 18:40:37 -070080
Romain Guy79537452011-10-12 13:48:51 -070081 virtual int saveLayer(float left, float top, float right, float bottom,
Chris Craikff785832013-03-08 13:12:16 -080082 int alpha, SkXfermode::Mode mode, int flags);
Romain Guy4aa90572010-09-26 18:40:37 -070083
Romain Guy79537452011-10-12 13:48:51 -070084 virtual void translate(float dx, float dy);
85 virtual void rotate(float degrees);
86 virtual void scale(float sx, float sy);
87 virtual void skew(float sx, float sy);
Romain Guy4aa90572010-09-26 18:40:37 -070088
Romain Guy79537452011-10-12 13:48:51 -070089 virtual void setMatrix(SkMatrix* matrix);
90 virtual void concatMatrix(SkMatrix* matrix);
Romain Guy4aa90572010-09-26 18:40:37 -070091
Romain Guy79537452011-10-12 13:48:51 -070092 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
Romain Guy735738c2012-12-03 12:34:51 -080093 virtual bool clipPath(SkPath* path, SkRegion::Op op);
94 virtual bool clipRegion(SkRegion* region, SkRegion::Op op);
Romain Guy4aa90572010-09-26 18:40:37 -070095
Chris Craikc3566d02013-02-04 16:16:33 -080096 virtual status_t drawDisplayList(DisplayList* displayList, Rect& dirty, int32_t flags);
Chris Craika08f95c2013-03-15 17:24:33 -070097 virtual status_t drawLayer(Layer* layer, float x, float y);
Chet Haase48659092012-05-31 15:21:51 -070098 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint);
99 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint);
100 virtual status_t drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop,
Romain Guy4aa90572010-09-26 18:40:37 -0700101 float srcRight, float srcBottom, float dstLeft, float dstTop,
Chet Haase5c13d892010-10-08 08:37:55 -0700102 float dstRight, float dstBottom, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700103 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint);
104 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight,
Romain Guy5a7b4662011-01-20 19:09:30 -0800105 float* vertices, int* colors, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700106 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
Romain Guy4bb94202010-10-12 15:59:26 -0700107 const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors,
Chet Haase5c13d892010-10-08 08:37:55 -0700108 float left, float top, float right, float bottom, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700109 virtual status_t drawColor(int color, SkXfermode::Mode mode);
110 virtual status_t drawRect(float left, float top, float right, float bottom, SkPaint* paint);
111 virtual status_t drawRoundRect(float left, float top, float right, float bottom,
Romain Guy01d58e42011-01-19 21:54:02 -0800112 float rx, float ry, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700113 virtual status_t drawCircle(float x, float y, float radius, SkPaint* paint);
114 virtual status_t drawOval(float left, float top, float right, float bottom, SkPaint* paint);
115 virtual status_t drawArc(float left, float top, float right, float bottom,
Romain Guy8b2f5262011-01-23 16:15:02 -0800116 float startAngle, float sweepAngle, bool useCenter, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700117 virtual status_t drawPath(SkPath* path, SkPaint* paint);
118 virtual status_t drawLines(float* points, int count, SkPaint* paint);
119 virtual status_t drawPoints(float* points, int count, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700120 virtual status_t drawTextOnPath(const char* text, int bytesCount, int count, SkPath* path,
Romain Guy325740f2012-02-24 16:48:34 -0800121 float hOffset, float vOffset, SkPaint* paint);
Chet Haase48659092012-05-31 15:21:51 -0700122 virtual status_t drawPosText(const char* text, int bytesCount, int count,
123 const float* positions, SkPaint* paint);
Chris Craik527a3aa2013-03-04 10:19:31 -0800124 virtual status_t drawText(const char* text, int bytesCount, int count, float x, float y,
125 const float* positions, SkPaint* paint, float length, DrawOpMode drawOpMode);
126
Romain Guy672433d2013-01-04 19:05:13 -0800127 virtual status_t drawRects(const float* rects, int count, SkPaint* paint);
Romain Guy4aa90572010-09-26 18:40:37 -0700128
Romain Guy79537452011-10-12 13:48:51 -0700129 virtual void resetShader();
130 virtual void setupShader(SkiaShader* shader);
Romain Guy4aa90572010-09-26 18:40:37 -0700131
Romain Guy79537452011-10-12 13:48:51 -0700132 virtual void resetColorFilter();
133 virtual void setupColorFilter(SkiaColorFilter* filter);
Romain Guy4aa90572010-09-26 18:40:37 -0700134
Romain Guy79537452011-10-12 13:48:51 -0700135 virtual void resetShadow();
136 virtual void setupShadow(float radius, float dx, float dy, int color);
Romain Guy4aa90572010-09-26 18:40:37 -0700137
Romain Guy5ff9df62012-01-23 17:09:05 -0800138 virtual void resetPaintFilter();
139 virtual void setupPaintFilter(int clearBits, int setBits);
140
Romain Guy79537452011-10-12 13:48:51 -0700141 ANDROID_API void reset();
Romain Guy4aa90572010-09-26 18:40:37 -0700142
Chris Craik2af46352012-11-26 18:30:17 -0800143 sp<DisplayListData> getDisplayListData() const {
144 return mDisplayListData;
Romain Guyb051e892010-09-28 19:09:36 -0700145 }
146
Chet Haase5c13d892010-10-08 08:37:55 -0700147 const Vector<SkBitmap*>& getBitmapResources() const {
148 return mBitmapResources;
Romain Guyb051e892010-09-28 19:09:36 -0700149 }
150
Romain Guy49c5fc02012-05-15 11:10:01 -0700151 const Vector<SkBitmap*>& getOwnedBitmapResources() const {
152 return mOwnedBitmapResources;
153 }
154
Romain Guyd586ad92011-06-22 16:14:36 -0700155 const Vector<SkiaColorFilter*>& getFilterResources() const {
156 return mFilterResources;
157 }
158
Romain Guy24c00212011-01-14 15:31:00 -0800159 const Vector<SkiaShader*>& getShaders() const {
160 return mShaders;
Romain Guyb051e892010-09-28 19:09:36 -0700161 }
162
Chet Haased98aa2d2010-10-25 15:47:32 -0700163 const Vector<SkPaint*>& getPaints() const {
164 return mPaints;
165 }
166
Romain Guy2fc941e2011-02-03 15:06:05 -0800167 const Vector<SkPath*>& getPaths() const {
168 return mPaths;
169 }
170
Chet Haased34dd712012-05-02 18:50:34 -0700171 const SortedVector<SkPath*>& getSourcePaths() const {
172 return mSourcePaths;
173 }
174
Romain Guy735738c2012-12-03 12:34:51 -0800175 const Vector<SkRegion*>& getRegions() const {
176 return mRegions;
177 }
178
Chet Haase603f6de2012-09-14 15:31:25 -0700179 const Vector<Layer*>& getLayers() const {
180 return mLayers;
181 }
182
Chet Haased98aa2d2010-10-25 15:47:32 -0700183 const Vector<SkMatrix*>& getMatrices() const {
184 return mMatrices;
185 }
186
Romain Guy54c1a642012-09-27 17:55:46 -0700187 uint32_t getFunctorCount() const {
188 return mFunctorCount;
189 }
190
Romain Guy4aa90572010-09-26 18:40:37 -0700191private:
Chris Craik2af46352012-11-26 18:30:17 -0800192 void insertRestoreToCount();
193 void insertTranslate();
Romain Guy27454a42011-01-23 12:01:41 -0800194
Chris Craik2af46352012-11-26 18:30:17 -0800195 LinearAllocator& alloc() { return mDisplayListData->allocator; }
196 void addStateOp(StateOp* op);
Romain Guy0f667532013-03-01 14:31:04 -0800197 void addDrawOp(DrawOp* op);
Chris Craik2af46352012-11-26 18:30:17 -0800198 void addOpInternal(DisplayListOp* op) {
Romain Guy27454a42011-01-23 12:01:41 -0800199 insertRestoreToCount();
Chris Craik2af46352012-11-26 18:30:17 -0800200 insertTranslate();
201 mDisplayListData->displayListOps.add(op);
Romain Guy4aa90572010-09-26 18:40:37 -0700202 }
203
Chris Craik2af46352012-11-26 18:30:17 -0800204 template<class T>
205 inline T* refBuffer(const T* srcBuffer, int32_t count) {
206 if (srcBuffer == NULL) return NULL;
207 T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T));
208 memcpy(dstBuffer, srcBuffer, count * sizeof(T));
209 return dstBuffer;
Romain Guy33f6beb2012-02-16 19:24:51 -0800210 }
211
Chris Craik2af46352012-11-26 18:30:17 -0800212 inline char* refText(const char* text, size_t byteLength) {
213 return (char*) refBuffer<uint8_t>((uint8_t*)text, byteLength);
Romain Guy33f6beb2012-02-16 19:24:51 -0800214 }
215
Chris Craik2af46352012-11-26 18:30:17 -0800216 inline SkPath* refPath(SkPath* path) {
217 if (!path) return NULL;
Romain Guy2fc941e2011-02-03 15:06:05 -0800218
219 SkPath* pathCopy = mPathMap.valueFor(path);
220 if (pathCopy == NULL || pathCopy->getGenerationID() != path->getGenerationID()) {
Romain Guyb29cfbf2011-03-18 16:24:19 -0700221 pathCopy = new SkPath(*path);
Romain Guy4bcb7462012-02-23 17:08:38 -0800222 pathCopy->setSourcePath(path);
Romain Guy96ebc6b2012-02-21 18:32:32 -0800223 // replaceValueFor() performs an add if the entry doesn't exist
224 mPathMap.replaceValueFor(path, pathCopy);
Romain Guyb29cfbf2011-03-18 16:24:19 -0700225 mPaths.add(pathCopy);
Romain Guy2fc941e2011-02-03 15:06:05 -0800226 }
Chet Haased34dd712012-05-02 18:50:34 -0700227 if (mSourcePaths.indexOf(path) < 0) {
Romain Guy58ecc202012-09-07 11:58:36 -0700228 mCaches.resourceCache.incrementRefcount(path);
Chet Haased34dd712012-05-02 18:50:34 -0700229 mSourcePaths.add(path);
230 }
Chris Craik2af46352012-11-26 18:30:17 -0800231 return pathCopy;
Romain Guy4aa90572010-09-26 18:40:37 -0700232 }
233
Chris Craik2af46352012-11-26 18:30:17 -0800234 inline SkPaint* refPaint(SkPaint* paint) {
Romain Guy24c00212011-01-14 15:31:00 -0800235 if (!paint) {
Chet Haasee816bae2012-08-09 13:39:02 -0700236 return paint;
Chet Haased98aa2d2010-10-25 15:47:32 -0700237 }
Romain Guy0fe478e2010-11-08 12:08:41 -0800238
Romain Guy22d41842012-01-19 18:33:25 -0800239 SkPaint* paintCopy = mPaintMap.valueFor(paint);
Chet Haased98aa2d2010-10-25 15:47:32 -0700240 if (paintCopy == NULL || paintCopy->getGenerationID() != paint->getGenerationID()) {
241 paintCopy = new SkPaint(*paint);
Romain Guy96ebc6b2012-02-21 18:32:32 -0800242 // replaceValueFor() performs an add if the entry doesn't exist
243 mPaintMap.replaceValueFor(paint, paintCopy);
Chet Haased98aa2d2010-10-25 15:47:32 -0700244 mPaints.add(paintCopy);
245 }
Romain Guy0fe478e2010-11-08 12:08:41 -0800246
Chet Haasee816bae2012-08-09 13:39:02 -0700247 return paintCopy;
Romain Guy0fe478e2010-11-08 12:08:41 -0800248 }
249
Chris Craik2af46352012-11-26 18:30:17 -0800250 inline SkRegion* refRegion(SkRegion* region) {
Romain Guy735738c2012-12-03 12:34:51 -0800251 if (!region) {
Romain Guy735738c2012-12-03 12:34:51 -0800252 return region;
253 }
254
255 SkRegion* regionCopy = mRegionMap.valueFor(region);
256 // TODO: Add generation ID to SkRegion
257 if (regionCopy == NULL) {
258 regionCopy = new SkRegion(*region);
259 // replaceValueFor() performs an add if the entry doesn't exist
260 mRegionMap.replaceValueFor(region, regionCopy);
261 mRegions.add(regionCopy);
262 }
263
Romain Guy735738c2012-12-03 12:34:51 -0800264 return regionCopy;
265 }
266
Chris Craik2af46352012-11-26 18:30:17 -0800267 inline SkMatrix* refMatrix(SkMatrix* matrix) {
Chet Haased98aa2d2010-10-25 15:47:32 -0700268 // Copying the matrix is cheap and prevents against the user changing the original
269 // matrix before the operation that uses it
Romain Guyf6a63ae2011-06-22 15:13:09 -0700270 SkMatrix* copy = new SkMatrix(*matrix);
Romain Guyf6a63ae2011-06-22 15:13:09 -0700271 mMatrices.add(copy);
Chris Craik2af46352012-11-26 18:30:17 -0800272 return copy;
Romain Guy4aa90572010-09-26 18:40:37 -0700273 }
274
Romain Guyce4a7df2013-03-28 11:32:33 -0700275 inline Layer* refLayer(Layer* layer) {
276 mLayers.add(layer);
277 mCaches.resourceCache.incrementRefcount(layer);
278 return layer;
279 }
280
Chris Craik2af46352012-11-26 18:30:17 -0800281 inline SkBitmap* refBitmap(SkBitmap* bitmap) {
Chet Haased98aa2d2010-10-25 15:47:32 -0700282 // Note that this assumes the bitmap is immutable. There are cases this won't handle
283 // correctly, such as creating the bitmap from scratch, drawing with it, changing its
284 // contents, and drawing again. The only fix would be to always copy it the first time,
285 // which doesn't seem worth the extra cycles for this unlikely case.
Chet Haase5c13d892010-10-08 08:37:55 -0700286 mBitmapResources.add(bitmap);
Romain Guy58ecc202012-09-07 11:58:36 -0700287 mCaches.resourceCache.incrementRefcount(bitmap);
Chris Craik2af46352012-11-26 18:30:17 -0800288 return bitmap;
Chet Haase5c13d892010-10-08 08:37:55 -0700289 }
Romain Guy4aa90572010-09-26 18:40:37 -0700290
Chris Craik2af46352012-11-26 18:30:17 -0800291 inline SkBitmap* refBitmapData(SkBitmap* bitmap) {
Romain Guy49c5fc02012-05-15 11:10:01 -0700292 mOwnedBitmapResources.add(bitmap);
Romain Guy58ecc202012-09-07 11:58:36 -0700293 mCaches.resourceCache.incrementRefcount(bitmap);
Chris Craik2af46352012-11-26 18:30:17 -0800294 return bitmap;
Romain Guy49c5fc02012-05-15 11:10:01 -0700295 }
296
Chris Craik2af46352012-11-26 18:30:17 -0800297 inline SkiaShader* refShader(SkiaShader* shader) {
298 if (!shader) return NULL;
Romain Guy24c00212011-01-14 15:31:00 -0800299
300 SkiaShader* shaderCopy = mShaderMap.valueFor(shader);
301 // TODO: We also need to handle generation ID changes in compose shaders
Romain Guy1f1fcb72011-01-14 15:37:54 -0800302 if (shaderCopy == NULL || shaderCopy->getGenerationId() != shader->getGenerationId()) {
Romain Guy24c00212011-01-14 15:31:00 -0800303 shaderCopy = shader->copy();
Romain Guy96ebc6b2012-02-21 18:32:32 -0800304 // replaceValueFor() performs an add if the entry doesn't exist
305 mShaderMap.replaceValueFor(shader, shaderCopy);
Romain Guy1f1fcb72011-01-14 15:37:54 -0800306 mShaders.add(shaderCopy);
Romain Guy58ecc202012-09-07 11:58:36 -0700307 mCaches.resourceCache.incrementRefcount(shaderCopy);
Romain Guy24c00212011-01-14 15:31:00 -0800308 }
Chris Craik2af46352012-11-26 18:30:17 -0800309 return shaderCopy;
Romain Guy4aa90572010-09-26 18:40:37 -0700310 }
311
Chris Craik2af46352012-11-26 18:30:17 -0800312 inline SkiaColorFilter* refColorFilter(SkiaColorFilter* colorFilter) {
Chet Haasead93c2b2010-10-22 16:17:12 -0700313 mFilterResources.add(colorFilter);
Romain Guy58ecc202012-09-07 11:58:36 -0700314 mCaches.resourceCache.incrementRefcount(colorFilter);
Chris Craik2af46352012-11-26 18:30:17 -0800315 return colorFilter;
Chet Haasead93c2b2010-10-22 16:17:12 -0700316 }
317
Chet Haase5c13d892010-10-08 08:37:55 -0700318 Vector<SkBitmap*> mBitmapResources;
Romain Guy49c5fc02012-05-15 11:10:01 -0700319 Vector<SkBitmap*> mOwnedBitmapResources;
Chet Haasead93c2b2010-10-22 16:17:12 -0700320 Vector<SkiaColorFilter*> mFilterResources;
Romain Guy4aa90572010-09-26 18:40:37 -0700321
Chet Haased98aa2d2010-10-25 15:47:32 -0700322 Vector<SkPaint*> mPaints;
Romain Guy0fe478e2010-11-08 12:08:41 -0800323 DefaultKeyedVector<SkPaint*, SkPaint*> mPaintMap;
Romain Guy24c00212011-01-14 15:31:00 -0800324
Romain Guy2fc941e2011-02-03 15:06:05 -0800325 Vector<SkPath*> mPaths;
326 DefaultKeyedVector<SkPath*, SkPath*> mPathMap;
327
Chet Haased34dd712012-05-02 18:50:34 -0700328 SortedVector<SkPath*> mSourcePaths;
329
Romain Guy735738c2012-12-03 12:34:51 -0800330 Vector<SkRegion*> mRegions;
331 DefaultKeyedVector<SkRegion*, SkRegion*> mRegionMap;
332
Romain Guy24c00212011-01-14 15:31:00 -0800333 Vector<SkiaShader*> mShaders;
334 DefaultKeyedVector<SkiaShader*, SkiaShader*> mShaderMap;
335
Chet Haased98aa2d2010-10-25 15:47:32 -0700336 Vector<SkMatrix*> mMatrices;
337
Chet Haase603f6de2012-09-14 15:31:25 -0700338 Vector<Layer*> mLayers;
339
Romain Guy27454a42011-01-23 12:01:41 -0800340 int mRestoreSaveCount;
Romain Guy33f6beb2012-02-16 19:24:51 -0800341
Romain Guy58ecc202012-09-07 11:58:36 -0700342 Caches& mCaches;
Chris Craik2af46352012-11-26 18:30:17 -0800343 sp<DisplayListData> mDisplayListData;
Romain Guy58ecc202012-09-07 11:58:36 -0700344
Romain Guy33f6beb2012-02-16 19:24:51 -0800345 float mTranslateX;
346 float mTranslateY;
347 bool mHasTranslate;
Romain Guy04c9d8c2011-08-25 14:01:48 -0700348 bool mHasDrawOps;
Romain Guy27454a42011-01-23 12:01:41 -0800349
Romain Guy54c1a642012-09-27 17:55:46 -0700350 uint32_t mFunctorCount;
351
Romain Guyb051e892010-09-28 19:09:36 -0700352 friend class DisplayList;
353
Romain Guy4aa90572010-09-26 18:40:37 -0700354}; // class DisplayListRenderer
355
356}; // namespace uirenderer
357}; // namespace android
358
Romain Guy5b3b3522010-10-27 18:57:51 -0700359#endif // ANDROID_HWUI_DISPLAY_LIST_RENDERER_H