Attempt to disable clear-as-draw-workaround on iOS PowerVR.
This workaround was modified here: https://chromium.googlesource.com/skia.git/+/43f8bf0f784f4182ed0fca9053ecf570caf7ad70 We have a report that this triggered a rendering regression on iOS. I believe this workaround was enabled on PowerVR due to issues on Android and not iOS. Change-Id: Iba4b589d8119f9e6106dec3504af156f536cb38c Reviewed-on: https://skia-review.googlesource.com/66541 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
parent
33b26d71ba
commit
35c886bd75
@ -562,12 +562,14 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
|
|||||||
GR_GL_GetIntegerv(gli, GR_GL_MAX_WINDOW_RECTANGLES, &fMaxWindowRectangles);
|
GR_GL_GetIntegerv(gli, GR_GL_MAX_WINDOW_RECTANGLES, &fMaxWindowRectangles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef SK_BUILD_FOR_IOS
|
||||||
if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() ||
|
if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() ||
|
||||||
kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() ||
|
kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() ||
|
||||||
(kAdreno3xx_GrGLRenderer == ctxInfo.renderer() &&
|
(kAdreno3xx_GrGLRenderer == ctxInfo.renderer() &&
|
||||||
ctxInfo.driver() != kChromium_GrGLDriver)) {
|
ctxInfo.driver() != kChromium_GrGLDriver)) {
|
||||||
fUseDrawToClearColor = true;
|
fUseDrawToClearColor = true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// A lot of GPUs have trouble with full screen clears (skbug.com/7195)
|
// A lot of GPUs have trouble with full screen clears (skbug.com/7195)
|
||||||
if (kAMDRadeonHD7xxx_GrGLRenderer == ctxInfo.renderer() ||
|
if (kAMDRadeonHD7xxx_GrGLRenderer == ctxInfo.renderer() ||
|
||||||
|
Loading…
Reference in New Issue
Block a user