diff options
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
| -rwxr-xr-x | libs/hwui/OpenGLRenderer.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 75e79d6897c8..76ad6cee52cb 100755 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -222,9 +222,6 @@ public: return mCaches; } - // simple rect clip - bool isCurrentClipSimple() { return mState.isCurrentClipSimple(); } - int getViewportWidth() { return mState.getViewportWidth(); } int getViewportHeight() { return mState.getViewportHeight(); } @@ -432,6 +429,13 @@ protected: */ void attachStencilBufferToLayer(Layer* layer); + /** + * Draw a rectangle list. Currently only used for the the stencil buffer so that the stencil + * will have a value of 'n' in every unclipped pixel, where 'n' is the number of rectangles + * in the list. + */ + void drawRectangleList(const RectangleList& rectangleList); + bool quickRejectSetupScissor(float left, float top, float right, float bottom, const SkPaint* paint = nullptr); bool quickRejectSetupScissor(const Rect& bounds, const SkPaint* paint = nullptr) { |