2010-09-26 18:40:37 -07:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2010-10-27 18:57:51 -07:00
|
|
|
#ifndef ANDROID_HWUI_DISPLAY_LIST_RENDERER_H
|
|
|
|
#define ANDROID_HWUI_DISPLAY_LIST_RENDERER_H
|
2010-09-26 18:40:37 -07:00
|
|
|
|
|
|
|
#include <SkMatrix.h>
|
|
|
|
#include <SkPaint.h>
|
|
|
|
#include <SkPath.h>
|
2011-10-12 13:48:51 -07:00
|
|
|
#include <cutils/compiler.h>
|
|
|
|
|
2013-02-14 15:36:01 -08:00
|
|
|
#include "DisplayList.h"
|
2011-03-24 10:51:31 -07:00
|
|
|
#include "DisplayListLogBuffer.h"
|
2010-09-26 18:40:37 -07:00
|
|
|
#include "OpenGLRenderer.h"
|
|
|
|
|
|
|
|
namespace android {
|
|
|
|
namespace uirenderer {
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Defines
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2011-07-27 16:28:21 -07:00
|
|
|
#define MIN_WRITER_SIZE 4096
|
2012-02-16 19:24:51 -08:00
|
|
|
#define OP_MAY_BE_SKIPPED_MASK 0xff000000
|
2010-09-26 18:40:37 -07:00
|
|
|
|
2011-01-13 17:21:49 -08:00
|
|
|
// Debug
|
|
|
|
#if DEBUG_DISPLAY_LIST
|
2011-12-20 16:23:08 +00:00
|
|
|
#define DISPLAY_LIST_LOGD(...) ALOGD(__VA_ARGS__)
|
2011-01-13 17:21:49 -08:00
|
|
|
#else
|
|
|
|
#define DISPLAY_LIST_LOGD(...)
|
|
|
|
#endif
|
|
|
|
|
2010-09-26 18:40:37 -07:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2010-09-28 19:09:36 -07:00
|
|
|
// Display list
|
2010-09-26 18:40:37 -07:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2013-02-04 16:16:33 -08:00
|
|
|
class DeferredDisplayList;
|
2010-09-28 19:09:36 -07:00
|
|
|
class DisplayListRenderer;
|
2012-11-26 18:30:17 -08:00
|
|
|
class DisplayListOp;
|
|
|
|
class DrawOp;
|
|
|
|
class StateOp;
|
|
|
|
|
2010-09-28 19:09:36 -07:00
|
|
|
/**
|
2014-01-01 14:45:21 -08:00
|
|
|
* Records drawing commands in a display list for later playback into an OpenGLRenderer.
|
2010-09-28 19:09:36 -07:00
|
|
|
*/
|
|
|
|
class DisplayListRenderer: public OpenGLRenderer {
|
|
|
|
public:
|
2011-10-12 13:48:51 -07:00
|
|
|
ANDROID_API DisplayListRenderer();
|
|
|
|
virtual ~DisplayListRenderer();
|
2010-09-28 19:09:36 -07:00
|
|
|
|
2014-02-26 11:00:11 -08:00
|
|
|
ANDROID_API DisplayListData* finishRecording();
|
2011-01-05 18:01:22 -08:00
|
|
|
|
2014-01-02 14:56:40 -08:00
|
|
|
virtual bool isRecording() const { return true; }
|
2012-05-15 11:10:01 -07:00
|
|
|
|
2013-12-30 15:32:54 -08:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Frame state operations
|
|
|
|
// ----------------------------------------------------------------------------
|
2011-10-12 13:48:51 -07:00
|
|
|
virtual void setViewport(int width, int height);
|
2012-10-18 15:05:02 -07:00
|
|
|
virtual status_t prepareDirty(float left, float top, float right, float bottom, bool opaque);
|
2011-10-12 13:48:51 -07:00
|
|
|
virtual void finish();
|
|
|
|
virtual void interrupt();
|
|
|
|
virtual void resume();
|
2011-01-10 14:10:36 -08:00
|
|
|
|
2013-12-30 15:32:54 -08:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Canvas state operations
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Save (layer)
|
2011-10-12 13:48:51 -07:00
|
|
|
virtual int save(int flags);
|
|
|
|
virtual void restore();
|
|
|
|
virtual void restoreToCount(int saveCount);
|
|
|
|
virtual int saveLayer(float left, float top, float right, float bottom,
|
2014-02-05 16:47:00 -05:00
|
|
|
const SkPaint* paint, int flags);
|
2010-09-26 18:40:37 -07:00
|
|
|
|
2013-12-30 15:32:54 -08:00
|
|
|
// Matrix
|
2013-12-26 15:13:13 -08:00
|
|
|
virtual void translate(float dx, float dy, float dz);
|
2011-10-12 13:48:51 -07:00
|
|
|
virtual void rotate(float degrees);
|
|
|
|
virtual void scale(float sx, float sy);
|
|
|
|
virtual void skew(float sx, float sy);
|
2010-09-26 18:40:37 -07:00
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
virtual void setMatrix(const SkMatrix* matrix);
|
|
|
|
virtual void concatMatrix(const SkMatrix* matrix);
|
2010-09-26 18:40:37 -07:00
|
|
|
|
2013-12-30 15:32:54 -08:00
|
|
|
// Clip
|
2011-10-12 13:48:51 -07:00
|
|
|
virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
|
2014-01-02 17:13:34 -08:00
|
|
|
virtual bool clipPath(const SkPath* path, SkRegion::Op op);
|
|
|
|
virtual bool clipRegion(const SkRegion* region, SkRegion::Op op);
|
2010-09-26 18:40:37 -07:00
|
|
|
|
2013-12-30 15:32:54 -08:00
|
|
|
// Misc - should be implemented with SkPaint inspection
|
|
|
|
virtual void resetShader();
|
|
|
|
virtual void setupShader(SkiaShader* shader);
|
|
|
|
|
|
|
|
virtual void resetShadow();
|
|
|
|
virtual void setupShadow(float radius, float dx, float dy, int color);
|
|
|
|
|
|
|
|
virtual void resetPaintFilter();
|
|
|
|
virtual void setupPaintFilter(int clearBits, int setBits);
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Canvas draw operations
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
virtual status_t drawColor(int color, SkXfermode::Mode mode);
|
|
|
|
|
|
|
|
// Bitmap-based
|
2014-01-02 17:13:34 -08:00
|
|
|
virtual status_t drawBitmap(const SkBitmap* bitmap, float left, float top,
|
|
|
|
const SkPaint* paint);
|
|
|
|
virtual status_t drawBitmap(const SkBitmap* bitmap, const SkMatrix* matrix,
|
|
|
|
const SkPaint* paint);
|
|
|
|
virtual status_t drawBitmap(const SkBitmap* bitmap, float srcLeft, float srcTop,
|
2010-09-26 18:40:37 -07:00
|
|
|
float srcRight, float srcBottom, float dstLeft, float dstTop,
|
2014-01-02 17:13:34 -08:00
|
|
|
float dstRight, float dstBottom, const SkPaint* paint);
|
|
|
|
virtual status_t drawBitmapData(const SkBitmap* bitmap, float left, float top,
|
|
|
|
const SkPaint* paint);
|
|
|
|
virtual status_t drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight,
|
|
|
|
const float* vertices, const int* colors, const SkPaint* paint);
|
|
|
|
virtual status_t drawPatch(const SkBitmap* bitmap, const Res_png_9patch* patch,
|
|
|
|
float left, float top, float right, float bottom, const SkPaint* paint);
|
2013-12-30 15:32:54 -08:00
|
|
|
|
|
|
|
// Shapes
|
2014-01-02 17:13:34 -08:00
|
|
|
virtual status_t drawRect(float left, float top, float right, float bottom,
|
|
|
|
const SkPaint* paint);
|
|
|
|
virtual status_t drawRects(const float* rects, int count, const SkPaint* paint);
|
2012-05-31 15:21:51 -07:00
|
|
|
virtual status_t drawRoundRect(float left, float top, float right, float bottom,
|
2014-01-02 17:13:34 -08:00
|
|
|
float rx, float ry, const SkPaint* paint);
|
|
|
|
virtual status_t drawCircle(float x, float y, float radius, const SkPaint* paint);
|
|
|
|
virtual status_t drawOval(float left, float top, float right, float bottom,
|
|
|
|
const SkPaint* paint);
|
2012-05-31 15:21:51 -07:00
|
|
|
virtual status_t drawArc(float left, float top, float right, float bottom,
|
2014-01-02 17:13:34 -08:00
|
|
|
float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint);
|
|
|
|
virtual status_t drawPath(const SkPath* path, const SkPaint* paint);
|
|
|
|
virtual status_t drawLines(const float* points, int count, const SkPaint* paint);
|
|
|
|
virtual status_t drawPoints(const float* points, int count, const SkPaint* paint);
|
2013-12-30 15:32:54 -08:00
|
|
|
|
|
|
|
// Text
|
|
|
|
virtual status_t drawText(const char* text, int bytesCount, int count, float x, float y,
|
2014-01-02 17:13:34 -08:00
|
|
|
const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds,
|
2013-12-30 15:32:54 -08:00
|
|
|
DrawOpMode drawOpMode = kDrawOpMode_Immediate);
|
2014-01-02 17:13:34 -08:00
|
|
|
virtual status_t drawTextOnPath(const char* text, int bytesCount, int count, const SkPath* path,
|
|
|
|
float hOffset, float vOffset, const SkPaint* paint);
|
2012-05-31 15:21:51 -07:00
|
|
|
virtual status_t drawPosText(const char* text, int bytesCount, int count,
|
2014-01-02 17:13:34 -08:00
|
|
|
const float* positions, const SkPaint* paint);
|
2010-09-26 18:40:37 -07:00
|
|
|
|
2013-12-30 15:32:54 -08:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Canvas draw operations - special
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
virtual status_t drawLayer(Layer* layer, float x, float y);
|
2014-03-12 13:56:30 -07:00
|
|
|
virtual status_t drawDisplayList(RenderNode* displayList, Rect& dirty,
|
2013-12-30 15:32:54 -08:00
|
|
|
int32_t replayFlags);
|
2010-09-26 18:40:37 -07:00
|
|
|
|
2013-12-30 15:32:54 -08:00
|
|
|
// TODO: rename for consistency
|
|
|
|
virtual status_t callDrawGLFunction(Functor* functor, Rect& dirty);
|
2012-01-23 17:09:05 -08:00
|
|
|
|
2010-09-26 18:40:37 -07:00
|
|
|
private:
|
2012-11-26 18:30:17 -08:00
|
|
|
void insertRestoreToCount();
|
|
|
|
void insertTranslate();
|
2010-09-26 18:40:37 -07:00
|
|
|
|
2012-11-26 18:30:17 -08:00
|
|
|
LinearAllocator& alloc() { return mDisplayListData->allocator; }
|
|
|
|
void addStateOp(StateOp* op);
|
2013-03-01 14:31:04 -08:00
|
|
|
void addDrawOp(DrawOp* op);
|
2012-11-26 18:30:17 -08:00
|
|
|
void addOpInternal(DisplayListOp* op) {
|
2012-02-16 19:24:51 -08:00
|
|
|
insertRestoreToCount();
|
2012-11-26 18:30:17 -08:00
|
|
|
insertTranslate();
|
|
|
|
mDisplayListData->displayListOps.add(op);
|
2010-09-26 18:40:37 -07:00
|
|
|
}
|
|
|
|
|
2012-11-26 18:30:17 -08:00
|
|
|
template<class T>
|
2014-01-02 17:13:34 -08:00
|
|
|
inline const T* refBuffer(const T* srcBuffer, int32_t count) {
|
|
|
|
if (!srcBuffer) return NULL;
|
|
|
|
|
2012-11-26 18:30:17 -08:00
|
|
|
T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T));
|
|
|
|
memcpy(dstBuffer, srcBuffer, count * sizeof(T));
|
|
|
|
return dstBuffer;
|
2010-09-26 18:40:37 -07:00
|
|
|
}
|
|
|
|
|
2012-11-26 18:30:17 -08:00
|
|
|
inline char* refText(const char* text, size_t byteLength) {
|
|
|
|
return (char*) refBuffer<uint8_t>((uint8_t*)text, byteLength);
|
2010-09-26 18:40:37 -07:00
|
|
|
}
|
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
inline const SkPath* refPath(const SkPath* path) {
|
2012-11-26 18:30:17 -08:00
|
|
|
if (!path) return NULL;
|
2011-02-03 15:06:05 -08:00
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
const SkPath* pathCopy = mPathMap.valueFor(path);
|
2011-02-03 15:06:05 -08:00
|
|
|
if (pathCopy == NULL || pathCopy->getGenerationID() != path->getGenerationID()) {
|
2014-01-02 17:13:34 -08:00
|
|
|
SkPath* newPathCopy = new SkPath(*path);
|
|
|
|
newPathCopy->setSourcePath(path);
|
|
|
|
|
|
|
|
pathCopy = newPathCopy;
|
2012-02-21 18:32:32 -08:00
|
|
|
// replaceValueFor() performs an add if the entry doesn't exist
|
|
|
|
mPathMap.replaceValueFor(path, pathCopy);
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->paths.add(pathCopy);
|
2010-09-26 18:40:37 -07:00
|
|
|
}
|
2014-02-26 11:00:11 -08:00
|
|
|
if (mDisplayListData->sourcePaths.indexOf(path) < 0) {
|
2012-09-07 11:58:36 -07:00
|
|
|
mCaches.resourceCache.incrementRefcount(path);
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->sourcePaths.add(path);
|
2012-05-02 18:50:34 -07:00
|
|
|
}
|
2012-11-26 18:30:17 -08:00
|
|
|
return pathCopy;
|
2010-09-26 18:40:37 -07:00
|
|
|
}
|
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
inline const SkPaint* refPaint(const SkPaint* paint) {
|
2011-01-14 15:31:00 -08:00
|
|
|
if (!paint) {
|
Optimize interactions with glyph cache
There are two fixes here:
- precaching: instead of caching-then-drawing whenever there is a new
glyph, we cache at DisplayList record time. Then when we finally draw that
DisplayList, we just upload the affected texture(s) once, instead of once
per change. This is a huge savings in upload time, especially when there are
larger glyphs being used by the app.
- packing: Previously, glyphs would line up horizontally on each cache line, leaving
potentially tons of space vertically, especially when smaller glyphs got put into cache
lines intended for large glyphs (which can happen when an app uses lots of unique
glyphs, a common case with, for example, chinese/japanese/korean languages). The new
approach packs glyphs vertically as well as horizontally to use the space more efficiently
and provide space for more glyphs in these situations.
Change-Id: I84338aa25db208c7bf13f3f92b4d05ed40c33527
2012-08-09 13:39:02 -07:00
|
|
|
return paint;
|
2010-10-25 15:47:32 -07:00
|
|
|
}
|
2010-11-08 12:08:41 -08:00
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
const SkPaint* paintCopy = mPaintMap.valueFor(paint);
|
2010-10-25 15:47:32 -07:00
|
|
|
if (paintCopy == NULL || paintCopy->getGenerationID() != paint->getGenerationID()) {
|
|
|
|
paintCopy = new SkPaint(*paint);
|
2012-02-21 18:32:32 -08:00
|
|
|
// replaceValueFor() performs an add if the entry doesn't exist
|
|
|
|
mPaintMap.replaceValueFor(paint, paintCopy);
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->paints.add(paintCopy);
|
2010-10-25 15:47:32 -07:00
|
|
|
}
|
2010-11-08 12:08:41 -08:00
|
|
|
|
Optimize interactions with glyph cache
There are two fixes here:
- precaching: instead of caching-then-drawing whenever there is a new
glyph, we cache at DisplayList record time. Then when we finally draw that
DisplayList, we just upload the affected texture(s) once, instead of once
per change. This is a huge savings in upload time, especially when there are
larger glyphs being used by the app.
- packing: Previously, glyphs would line up horizontally on each cache line, leaving
potentially tons of space vertically, especially when smaller glyphs got put into cache
lines intended for large glyphs (which can happen when an app uses lots of unique
glyphs, a common case with, for example, chinese/japanese/korean languages). The new
approach packs glyphs vertically as well as horizontally to use the space more efficiently
and provide space for more glyphs in these situations.
Change-Id: I84338aa25db208c7bf13f3f92b4d05ed40c33527
2012-08-09 13:39:02 -07:00
|
|
|
return paintCopy;
|
2010-11-08 12:08:41 -08:00
|
|
|
}
|
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
inline const SkRegion* refRegion(const SkRegion* region) {
|
2012-12-03 12:34:51 -08:00
|
|
|
if (!region) {
|
|
|
|
return region;
|
|
|
|
}
|
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
const SkRegion* regionCopy = mRegionMap.valueFor(region);
|
2012-12-03 12:34:51 -08:00
|
|
|
// TODO: Add generation ID to SkRegion
|
|
|
|
if (regionCopy == NULL) {
|
|
|
|
regionCopy = new SkRegion(*region);
|
|
|
|
// replaceValueFor() performs an add if the entry doesn't exist
|
|
|
|
mRegionMap.replaceValueFor(region, regionCopy);
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->regions.add(regionCopy);
|
2012-12-03 12:34:51 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
return regionCopy;
|
|
|
|
}
|
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
inline const SkMatrix* refMatrix(const SkMatrix* matrix) {
|
2013-07-16 13:47:01 -07:00
|
|
|
if (matrix) {
|
|
|
|
// Copying the matrix is cheap and prevents against the user changing
|
|
|
|
// the original matrix before the operation that uses it
|
2014-01-02 17:13:34 -08:00
|
|
|
const SkMatrix* copy = new SkMatrix(*matrix);
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->matrices.add(copy);
|
2013-07-16 13:47:01 -07:00
|
|
|
return copy;
|
|
|
|
}
|
|
|
|
return matrix;
|
2010-09-26 18:40:37 -07:00
|
|
|
}
|
|
|
|
|
2013-03-28 11:32:33 -07:00
|
|
|
inline Layer* refLayer(Layer* layer) {
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->layers.add(layer);
|
2013-03-28 11:32:33 -07:00
|
|
|
mCaches.resourceCache.incrementRefcount(layer);
|
|
|
|
return layer;
|
|
|
|
}
|
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
inline const SkBitmap* refBitmap(const SkBitmap* bitmap) {
|
2010-10-25 15:47:32 -07:00
|
|
|
// Note that this assumes the bitmap is immutable. There are cases this won't handle
|
|
|
|
// correctly, such as creating the bitmap from scratch, drawing with it, changing its
|
|
|
|
// contents, and drawing again. The only fix would be to always copy it the first time,
|
|
|
|
// which doesn't seem worth the extra cycles for this unlikely case.
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->bitmapResources.add(bitmap);
|
2012-09-07 11:58:36 -07:00
|
|
|
mCaches.resourceCache.incrementRefcount(bitmap);
|
2012-11-26 18:30:17 -08:00
|
|
|
return bitmap;
|
2010-10-08 08:37:55 -07:00
|
|
|
}
|
2010-09-26 18:40:37 -07:00
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
inline const SkBitmap* refBitmapData(const SkBitmap* bitmap) {
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->ownedBitmapResources.add(bitmap);
|
2012-09-07 11:58:36 -07:00
|
|
|
mCaches.resourceCache.incrementRefcount(bitmap);
|
2012-11-26 18:30:17 -08:00
|
|
|
return bitmap;
|
2012-05-15 11:10:01 -07:00
|
|
|
}
|
|
|
|
|
2012-11-26 18:30:17 -08:00
|
|
|
inline SkiaShader* refShader(SkiaShader* shader) {
|
|
|
|
if (!shader) return NULL;
|
2011-01-14 15:31:00 -08:00
|
|
|
|
|
|
|
SkiaShader* shaderCopy = mShaderMap.valueFor(shader);
|
|
|
|
// TODO: We also need to handle generation ID changes in compose shaders
|
2011-01-14 15:37:54 -08:00
|
|
|
if (shaderCopy == NULL || shaderCopy->getGenerationId() != shader->getGenerationId()) {
|
2011-01-14 15:31:00 -08:00
|
|
|
shaderCopy = shader->copy();
|
2012-02-21 18:32:32 -08:00
|
|
|
// replaceValueFor() performs an add if the entry doesn't exist
|
|
|
|
mShaderMap.replaceValueFor(shader, shaderCopy);
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->shaders.add(shaderCopy);
|
2012-09-07 11:58:36 -07:00
|
|
|
mCaches.resourceCache.incrementRefcount(shaderCopy);
|
2011-01-14 15:31:00 -08:00
|
|
|
}
|
2012-11-26 18:30:17 -08:00
|
|
|
return shaderCopy;
|
2010-09-26 18:40:37 -07:00
|
|
|
}
|
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) {
|
2014-02-26 11:00:11 -08:00
|
|
|
mDisplayListData->patchResources.add(patch);
|
2013-06-26 15:45:41 -07:00
|
|
|
mCaches.resourceCache.incrementRefcount(patch);
|
|
|
|
return patch;
|
|
|
|
}
|
|
|
|
|
2014-01-02 17:13:34 -08:00
|
|
|
DefaultKeyedVector<const SkPaint*, const SkPaint*> mPaintMap;
|
|
|
|
DefaultKeyedVector<const SkPath*, const SkPath*> mPathMap;
|
|
|
|
DefaultKeyedVector<const SkRegion*, const SkRegion*> mRegionMap;
|
2011-01-14 15:31:00 -08:00
|
|
|
DefaultKeyedVector<SkiaShader*, SkiaShader*> mShaderMap;
|
|
|
|
|
2012-09-07 11:58:36 -07:00
|
|
|
Caches& mCaches;
|
2014-02-26 11:00:11 -08:00
|
|
|
DisplayListData* mDisplayListData;
|
2012-09-07 11:58:36 -07:00
|
|
|
|
2012-02-16 19:24:51 -08:00
|
|
|
float mTranslateX;
|
|
|
|
float mTranslateY;
|
|
|
|
bool mHasTranslate;
|
2012-09-27 17:55:46 -07:00
|
|
|
|
2014-03-05 16:37:35 -08:00
|
|
|
int mRestoreSaveCount;
|
|
|
|
|
2014-03-12 13:56:30 -07:00
|
|
|
friend class RenderNode;
|
2010-09-28 19:09:36 -07:00
|
|
|
|
2010-09-26 18:40:37 -07:00
|
|
|
}; // class DisplayListRenderer
|
|
|
|
|
|
|
|
}; // namespace uirenderer
|
|
|
|
}; // namespace android
|
|
|
|
|
2010-10-27 18:57:51 -07:00
|
|
|
#endif // ANDROID_HWUI_DISPLAY_LIST_RENDERER_H
|