Only disable scratch texture reuse on the N10 and N4
https://codereview.chromium.org/48903017/ git-svn-id: http://skia.googlecode.com/svn/trunk@12080 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
7b1c2c102e
commit
8995b7b626
@ -312,11 +312,10 @@ void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) {
|
|||||||
ctxInfo.hasExtension("GL_NV_path_rendering");
|
ctxInfo.hasExtension("GL_NV_path_rendering");
|
||||||
|
|
||||||
fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType;
|
fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType;
|
||||||
#ifdef SK_BUILD_FOR_ANDROID
|
|
||||||
fReuseScratchTextures = false;
|
// Disable scratch texture reuse on Mali and Adreno devices
|
||||||
#else
|
fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() &&
|
||||||
fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor();
|
kQualcomm_GrGLVendor != ctxInfo.vendor();
|
||||||
#endif
|
|
||||||
|
|
||||||
// Enable supported shader-related caps
|
// Enable supported shader-related caps
|
||||||
if (kDesktop_GrGLBinding == binding) {
|
if (kDesktop_GrGLBinding == binding) {
|
||||||
|
Loading…
Reference in New Issue
Block a user