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

Unified Diff: cc/output/output_surface.h

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: without-the-broken-thing-for-testing-lol 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: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index f9ec618996692697dc9b556337f6dd222cffa068..95a52c1edd05ec325c41949eafc7b4e9fdb49673 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -132,6 +132,9 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider {
virtual void ForceReclaimResources() {}
virtual void BindFramebuffer();
+ // Gives the GL internal format that should be used for calling CopyTexImage2D
+ // when the framebuffer is bound via BindFramebuffer().
+ virtual uint32_t GetFramebufferCopyTextureFormat() = 0;
// The implementation may destroy or steal the contents of the CompositorFrame
// passed in (though it will not take ownership of the CompositorFrame

Powered by Google App Engine
This is Rietveld 408576698