skia2/tools/gpu/gl
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
..
angle Create a new HDC for each ANGLE context 2017-06-09 00:39:00 +00:00
command_buffer Enable chromecast gpu perf 2017-05-24 20:30:05 +00:00
debug Replace SkFAIL with SK_ABORT. 2017-08-16 15:37:54 +00:00
egl Enable chromecast gpu perf 2017-05-24 20:30:05 +00:00
glx tools: s/SkAutoTUnref/sk_sp/ 2016-11-03 21:00:34 +00:00
iOS Add arc support to gpu Obj c++ code 2017-07-12 20:49:32 +00:00
mac Support shared GL contexts in GrContextFactory 2017-02-22 13:32:56 +00:00
mesa Fix Mesa compile 2017-02-22 14:20:25 +00:00
none Add CreatePlatformGLTestContext_none.cpp for Google3 build 2016-04-01 04:50:45 -07:00
null Support shared GL contexts in GrContextFactory 2017-02-22 13:32:56 +00:00
win Cache the results of get_pixel_formats_to_try 2017-08-18 13:29:49 +00:00
GLTestContext.cpp Add Make[backend] calls for creating GrContexts 2017-07-25 14:33:03 +00:00
GLTestContext.h Replace SkFAIL with SK_ABORT. 2017-08-16 15:37:54 +00:00