From 224e946b3cabeaa9c360bdd6865485b5acb34cdc Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Thu, 27 Sep 2012 15:31:53 -0700 Subject: Fix opaque rect calculation to quickreject transparent shader drawn ops bug:7247486 Change-Id: Iba6b37d50985b51585e6e96a35705da54aae9878 --- .../graphics/android/context/PlatformGraphicsContextRecording.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source') diff --git a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.cpp b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.cpp index 03d9b81..867ff56 100644 --- a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.cpp +++ b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextRecording.cpp @@ -1017,6 +1017,7 @@ IntRect PlatformGraphicsContextRecording::calculateCoveredBounds(FloatRect bound { if (mRecordingStateStack.last().mOpaqueTrackingDisabled || m_state->alpha != 1.0f + || (m_state->fillShader != 0 && !m_state->fillShader->isOpaque()) || (m_state->mode != SkXfermode::kSrc_Mode && m_state->mode != SkXfermode::kSrcOver_Mode) || !mCurrentMatrix->rectStaysRect()) { return IntRect(); -- cgit v1.1