From 117bdbcfa3e8306dad21e7e01fa71b00cdfa7265 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Thu, 5 Feb 2015 10:12:38 -0800 Subject: Glop ColorFilter & VertexBuffer support, initial enable Enables Glop rendering for supported Rects and VertexBuffers Also removes unused Query object Change-Id: Ibe227bc362685a153159f75077664f0947764e06 --- libs/hwui/utils/PaintUtils.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/hwui/utils/PaintUtils.h') diff --git a/libs/hwui/utils/PaintUtils.h b/libs/hwui/utils/PaintUtils.h index 2091705..679e2bf 100644 --- a/libs/hwui/utils/PaintUtils.h +++ b/libs/hwui/utils/PaintUtils.h @@ -52,6 +52,13 @@ public: && getXfermode(paint.getXfermode()) == SkXfermode::kSrcOver_Mode; } + static bool isBlendedShader(const SkShader* shader) { + if (shader == nullptr) { + return false; + } + return !shader->isOpaque(); + } + static bool isBlendedColorFilter(const SkColorFilter* filter) { if (filter == nullptr) { return false; -- cgit v1.1