Separate SharedImageBackingGL Texture vs Image
At the beginning of this refactor there were 2 SharedImageBacking classes: passthrough vs not-passthrough. This is towards having 2 SharedImageBacking: GLImage vs normal GL texture. The classes still inherit from a single Common class. This moves some of the common code into static methods in the Common class. In particular * Make separate InitializeGLTexture functions, and move much of the common code into SharedImageBackingGLCommon:: MakeTextureAndSetParameters. * Make SharedImageRepresentationSkiaImpl have a method to take a callback to make on BeginReadAccess, rather than calling a method on SharedImageBackingGLCommon. - De-common-ize SharedImageBackingGLCommon::ProduceSkia. - Change it to have the caller create the SkPromiseImageTexture. * Add SharedImageBackingGLImage::InitializePixels - For now this just calls glTexSubImage2D - In the future this will write to the GpuMemoryBuffer. Bug: 1092155 Change-Id: If5f60356d683673e610192b7c851664a138a9951 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248413 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by:Geoff Lang <geofflang@chromium.org> Cr-Commit-Position: refs/heads/master@{#780011}
Showing
This diff is collapsed.
Please register or sign in to comment