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

Unified Diff: components/mus/surfaces/direct_output_surface_ozone.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_ozone.cc
diff --git a/components/mus/surfaces/direct_output_surface_ozone.cc b/components/mus/surfaces/direct_output_surface_ozone.cc
index 48af7d772fd97f95a98e965cd5a153cc298746ed..fc302467063efb47a27bff8a68a3bb164ede606d 100644
--- a/components/mus/surfaces/direct_output_surface_ozone.cc
+++ b/components/mus/surfaces/direct_output_surface_ozone.cc
@@ -145,6 +145,10 @@ void DirectOutputSurfaceOzone::BindFramebuffer() {
buffer_queue_->BindFramebuffer();
}
+uint32_t DirectOutputSurfaceOzone::GetFramebufferCopyTextureFormat() {
+ return buffer_queue_->internal_format();
+}
+
// We call this on every frame but changing the size once we've allocated
// backing NativePixmapOzone instances will cause a DCHECK because
// Chrome never Reshape(s) after the first one from (0,0). NB: this implies

Powered by Google App Engine
This is Rietveld 408576698