Add fixes & test for isConfigTexturable and isConfigRenderable
authorRobert Phillips <robertphillips@google.com>
Mon, 22 May 2017 17:23:19 +0000 (13:23 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 22 May 2017 17:55:48 +0000 (17:55 +0000)
commitb7b7e5fba08399c76fa0763ec3ed49ae120b64d8
treeaaa3a3bfe59bc5f186ded94fb6b1870cf926af7a
parente2fc5632346a4544d86814bbab1dfb1d58d93a5e
Add fixes & test for isConfigTexturable and isConfigRenderable

This CL fixes:
  isConfigTexturable was returning true for:
            kRG_float for ANGLE ES2 configs
  isConfigRenderable was returning true for:
            kAlpha_8 for ANGLE ES2 configs
  isConfigTexturable and isConfigRenderable were returning true for:
            SBGRA on ES2
  The NexusPlayer was marking RGBA & RG float configs as renderable but not textureable

Bug: 720325

Change-Id: If21361870dbdde8f3e09bc9dff3a394f2a329157
Reviewed-on: https://skia-review.googlesource.com/17387
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
include/gpu/GrCaps.h
src/gpu/GrGpu.cpp
src/gpu/gl/GrGLCaps.cpp
src/gpu/vk/GrVkCaps.cpp
tests/GrSurfaceTest.cpp
tests/IntTextureTest.cpp
tools/gpu/GrTest.cpp