DescriptionImprove Ganesh helpers.
Properly reset and flush the Ganesh context when needed.
When intermixing Ganesh rendering with other GL operations, the
Ganesh renderer's cached GPU state can get out of sync with the
actual state of the GL context, resulting in broken behavior.
To fix this problem, reset the Ganesh context when entering its
scope and flush it when exiting its scope. This operation has a
small performance cost but only when entering and exiting the scope
which should be infrequent (ideally no more than once per frame).
Added a helper for creating SkImages from a texture and updated
the GaneshTextureSurface to use the new GrGLTextureInfo type
which was introduced in the latest Skia roll.
Moved helpers into the mojo::skia namespace.
R=abarth@google.com
Committed: https://chromium.googlesource.com/external/mojo/+/297d5e5e81b07d9a0a0576a86fd43e4efbbe2d70
Patch Set 1 #Patch Set 2 : catch up to a recent Skia roll, moved namespaces, cleanups #Patch Set 3 : fix include order #Patch Set 4 : fix includes #
Total comments: 7
Patch Set 5 : improve scope's scoping powers per review comments #Patch Set 6 : #Patch Set 7 : rebase #
Total comments: 1
Patch Set 8 : rebase #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 14 (4 generated)
|