summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-08-04 15:40:07 -0700
committerRomain Guy <romainguy@google.com>2010-08-05 17:23:49 -0700
commit7fbcc0492fca03857e3c45064f4aa040af817d55 (patch)
treea2422b4694ae589a60f2571070c53c7b918ec732 /libs/hwui/OpenGLRenderer.h
parentbc9151bcad5d1b1d14bb900fcc50ba08c06f87d4 (diff)
downloadframeworks_base-7fbcc0492fca03857e3c45064f4aa040af817d55.zip
frameworks_base-7fbcc0492fca03857e3c45064f4aa040af817d55.tar.gz
frameworks_base-7fbcc0492fca03857e3c45064f4aa040af817d55.tar.bz2
Add support for paths.
Rendering is implementing by rasterizing the paths into A8 textures. This cna be extremely inefficient if the path changes often. Change-Id: I609343f304ae38e0d319359403ee73b9b5b3c93a
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rw-r--r--libs/hwui/OpenGLRenderer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h
index d2a291f..76783e9 100644
--- a/libs/hwui/OpenGLRenderer.h
+++ b/libs/hwui/OpenGLRenderer.h
@@ -44,6 +44,7 @@
#include "ProgramCache.h"
#include "SkiaShader.h"
#include "SkiaColorFilter.h"
+#include "PathCache.h"
namespace android {
namespace uirenderer {
@@ -92,6 +93,7 @@ public:
float right, float bottom, const SkPaint* paint);
void drawColor(int color, SkXfermode::Mode mode);
void drawRect(float left, float top, float right, float bottom, const SkPaint* paint);
+ void drawPath(SkPath* path, SkPaint* paint);
void resetShader();
void setupShader(SkiaShader* shader);
@@ -307,6 +309,7 @@ private:
LayerCache mLayerCache;
GradientCache mGradientCache;
ProgramCache mProgramCache;
+ PathCache mPathCache;
PatchCache mPatchCache;
}; // class OpenGLRenderer