skia2/tools/gpu
Brian Osman de3b710913 Cache the results of get_pixel_formats_to_try
Choosing pixel formats is quite slow (depending on driver?). We were
doing this once per context, and it added up. On my desktop windows
machine, this saves another 7 seconds in `dm --config gl --src gm`.

Actual times:
  37s -> 30s (not writing PNGs)
  47s -> 39.5s (writing PNGs)

We always called this with MSAA sample count set to zero, so I cleaned
up the code to make that clearer. Also included a comment about the
theoretical risk, although I think that outside of a multi-GPU system,
we're fine.

Bug: skia:
Change-Id: I50927ebfaf6fe8d88a63674427fbf9e06e4ab059
Reviewed-on: https://skia-review.googlesource.com/35763
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2017-08-18 13:29:49 +00:00
..
gl Cache the results of get_pixel_formats_to_try 2017-08-18 13:29:49 +00:00
mock Add Make[backend] calls for creating GrContexts 2017-07-25 14:33:03 +00:00
mtl Add support for creating a GrContext backed by Metal. 2017-07-13 21:29:33 +00:00
vk Add Make[backend] calls for creating GrContexts 2017-07-25 14:33:03 +00:00
FenceSync.h skpbench: add option for gpu timing 2016-10-05 08:42:03 -07:00
GpuTimer.h skpbench: add option for gpu timing 2016-10-05 08:42:03 -07:00
GrContextFactory.cpp Add Make[backend] calls for creating GrContexts 2017-07-25 14:33:03 +00:00
GrContextFactory.h Replace SkFAIL with SK_ABORT. 2017-08-16 15:37:54 +00:00
GrTest.cpp Revert "Add GrTextureOp and use to implement SkGpuDevice::drawImage[Rect]() when possible" 2017-08-18 13:06:00 +00:00
GrTest.h Revert "Revert "Plumb GrBackendTexture throughout skia."" 2017-04-20 17:17:43 +00:00
TestContext.cpp Add support for creating a GrContext backed by Metal. 2017-07-13 21:29:33 +00:00
TestContext.h Add support for creating a GrContext backed by Metal. 2017-07-13 21:29:33 +00:00