diff options
author | bsalomon <bsalomon@google.com> | 2014-07-17 10:50:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-17 10:50:59 -0700 |
commit | e904c09a3a9c701e8d91f2f6ee161feda7615d90 (patch) | |
tree | d16bb75440bbad4bda8e07f0d6d23b9c9061e6c4 /tests/ImageNewShaderTest.cpp | |
parent | e57452debd6a1f92641af4ca09bc2227476fff10 (diff) |
Fix alpha textures in NV ES3 contexts on Windows.
Make unit tests iterate over all the rendering GL context types rather than using kNative.
Fix the extension printing when gStartupSpew is set.
R=jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/398183002
Diffstat (limited to 'tests/ImageNewShaderTest.cpp')
-rw-r--r-- | tests/ImageNewShaderTest.cpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/tests/ImageNewShaderTest.cpp b/tests/ImageNewShaderTest.cpp index b4349e0633..f34d066f6b 100644 --- a/tests/ImageNewShaderTest.cpp +++ b/tests/ImageNewShaderTest.cpp @@ -92,17 +92,29 @@ void rasterToGpu(skiatest::Reporter* reporter, GrContext* context) { } DEF_GPUTEST(ImageNewShader_GPU, reporter, factory) { - GrContext* context = factory->get(GrContextFactory::kNative_GLContextType); + for (int i= 0; i < GrContextFactory::kGLContextTypeCnt; ++i) { + GrContextFactory::GLContextType glCtxType = (GrContextFactory::GLContextType) i; - // GPU -> GPU - gpuToGpu(reporter, context); + if (!GrContextFactory::IsRenderingGLContext(glCtxType)) { + continue; + } - // GPU -> RASTER - gpuToRaster(reporter, context); + GrContext* context = factory->get(glCtxType); + if (NULL == context) { + continue; + } - // RASTER -> GPU - rasterToGpu(reporter, context); + // GPU -> GPU + gpuToGpu(reporter, context); + + // GPU -> RASTER + gpuToRaster(reporter, context); + + + // RASTER -> GPU + rasterToGpu(reporter, context); + } } #endif |