Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: components/mus/surfaces/direct_output_surface.cc

Issue 2089753003: cc: Use the correct internal format for glCopyTexImage2D calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copytextureformat: comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/mus/surfaces/direct_output_surface.cc
diff --git a/components/mus/surfaces/direct_output_surface.cc b/components/mus/surfaces/direct_output_surface.cc
index 2f2b02f5c63a98725670af929d127ee8a9f81214..c4c3544230604e757e2c99026e47e16e9ea848e3 100644
--- a/components/mus/surfaces/direct_output_surface.cc
+++ b/components/mus/surfaces/direct_output_surface.cc
@@ -72,4 +72,10 @@ void DirectOutputSurface::SwapBuffers(cc::CompositorFrame* frame) {
client_->DidSwapBuffers();
}
+uint32_t DirectOutputSurface::GetFramebufferCopyTextureFormat() {
+ // TODO(danakj): What attributes are used for the default framebuffer here?
+ // Can it have alpha? SurfacesContextProvider doesn't take any attributes.
+ return GL_RGB;
+}
+
} // namespace mus
« no previous file with comments | « components/mus/surfaces/direct_output_surface.h ('k') | components/mus/surfaces/direct_output_surface_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698