diff options
author | Chris Craik <ccraik@google.com> | 2014-01-02 17:13:34 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-01-03 13:55:08 -0800 |
commit | d218a92c0afb8c0d98135b20b52ac87236e1c935 (patch) | |
tree | 3eef804e9948ca463e720ac636db46b2637fdabb /libs/hwui/PathTessellator.h | |
parent | 8523706236b0b2536ed4359d92ec6ccdca060d78 (diff) | |
download | frameworks_base-d218a92c0afb8c0d98135b20b52ac87236e1c935.zip frameworks_base-d218a92c0afb8c0d98135b20b52ac87236e1c935.tar.gz frameworks_base-d218a92c0afb8c0d98135b20b52ac87236e1c935.tar.bz2 |
Use const where possible for drawing parameters
They should never be modified by a Renderer, only read and copied.
Change-Id: I9d8d55dca19115ee9dfeb2bb3f092ba2fb327cd4
Diffstat (limited to 'libs/hwui/PathTessellator.h')
-rw-r--r-- | libs/hwui/PathTessellator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/PathTessellator.h b/libs/hwui/PathTessellator.h index 24f20bc..e43b101 100644 --- a/libs/hwui/PathTessellator.h +++ b/libs/hwui/PathTessellator.h @@ -34,10 +34,10 @@ public: static void tessellatePath(const SkPath& path, const SkPaint* paint, const mat4& transform, VertexBuffer& vertexBuffer); - static void tessellatePoints(const float* points, int count, SkPaint* paint, + static void tessellatePoints(const float* points, int count, const SkPaint* paint, const mat4& transform, SkRect& bounds, VertexBuffer& vertexBuffer); - static void tessellateLines(const float* points, int count, SkPaint* paint, + static void tessellateLines(const float* points, int count, const SkPaint* paint, const mat4& transform, SkRect& bounds, VertexBuffer& vertexBuffer); private: |