diff options
| author | 2012-09-21 11:03:59 -0700 | |
|---|---|---|
| committer | 2012-09-21 11:03:59 -0700 | |
| commit | 61d37041ac76a95aedb98d3550bb5efa33d898a1 (patch) | |
| tree | cffd7916bceba166b3cff01054a092ca52c7bc44 /libs/hwui/OpenGLRenderer.h | |
| parent | 739bc9e3f51c203fc0b58c30d67cacda985e95c6 (diff) | |
| parent | 710f46d9d6a5bf9ea1c1833384caf61e1934124f (diff) | |
Merge "Polygonal rendering of simple fill shapes" into jb-mr1-dev
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.h | 30 | 
1 files changed, 7 insertions, 23 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 3e343361eede..7d5da68121cd 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -493,19 +493,6 @@ private:      status_t drawShape(float left, float top, const PathTexture* texture, SkPaint* paint);      /** -     * Renders the rect defined by the specified bounds as a shape. -     * This will render the rect using a path texture, which is used to render -     * rects with stroke effects. -     * -     * @param left The left coordinate of the rect to draw -     * @param top The top coordinate of the rect to draw -     * @param right The right coordinate of the rect to draw -     * @param bottom The bottom coordinate of the rect to draw -     * @param p The paint to draw the rect with -     */ -    status_t drawRectAsShape(float left, float top, float right, float bottom, SkPaint* p); - -    /**       * Draws the specified texture as an alpha bitmap. Alpha bitmaps obey       * different compositing rules.       * @@ -517,17 +504,14 @@ private:      void drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint);      /** -     * Renders the rect defined by the specified bounds as an anti-aliased rect. +     * Renders the convex hull defined by the specified path as a strip of polygons.       * -     * @param left The left coordinate of the rect to draw -     * @param top The top coordinate of the rect to draw -     * @param right The right coordinate of the rect to draw -     * @param bottom The bottom coordinate of the rect to draw +     * @param path The hull of the path to draw       * @param color The color of the rect -     * @param mode The blending mode to draw the rect +     * @param mode The blending mode to draw the path +     * @param isAA True if the drawing should be anti-aliased       */ -    void drawAARect(float left, float top, float right, float bottom, -            int color, SkXfermode::Mode mode); +    void drawConvexPath(const SkPath& path, int color, SkXfermode::Mode mode, bool isAA);      /**       * Draws a textured rectangle with the specified texture. The specified coordinates @@ -688,8 +672,8 @@ private:      void setupDrawWithTexture(bool isAlpha8 = false);      void setupDrawWithExternalTexture();      void setupDrawNoTexture(); -    void setupDrawAALine(); -    void setupDrawAARect(); +    void setupDrawAA(); +    void setupDrawVertexShape();      void setupDrawPoint(float pointSize);      void setupDrawColor(int color);      void setupDrawColor(int color, int alpha);  |