Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 2f706be

Browse files
authored
Fix EXIF orentation problem (#6974)
1 parent 2ab0194 commit 2f706be

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

shell/common/io_manager.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ sk_sp<GrContext> IOManager::CreateCompatibleResourceLoadingContext(
2424
// thread. The necessary work isn't being flushed or synchronized with the
2525
// other threads correctly, so the textures end up blank. For now, suppress
2626
// that feature, which will cause texture uploads to do CPU YUV conversion.
27+
// A similar work-around is also used in shell/gpu/gpu_surface_gl.cc.
2728
options.fDisableGpuYUVConversion = true;
2829

2930
// To get video playback on the widest range of devices, we limit Skia to

shell/gpu/gpu_surface_gl.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ GPUSurfaceGL::GPUSurfaceGL(GPUSurfaceGLDelegate* delegate)
5656
// ES2 shading language when the ES3 external image extension is missing.
5757
options.fPreferExternalImagesOverES3 = true;
5858

59+
// TODO(goderbauer): remove option when skbug.com/7523 is fixed.
60+
// A similar work-around is also used in shell/common/io_manager.cc.
61+
options.fDisableGpuYUVConversion = true;
62+
5963
sk_sp<const GrGLInterface> interface;
6064

6165
if (proc_resolver_ == nullptr) {

0 commit comments

Comments
 (0)