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

Unified Diff: cc/test/pixel_test_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
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test_output_surface.cc
diff --git a/cc/test/pixel_test_output_surface.cc b/cc/test/pixel_test_output_surface.cc
index b13b46d314307b2111f2b619b873d0a78133bb70..b818a0828ae230008adde7aa7f30982f6810fd91 100644
--- a/cc/test/pixel_test_output_surface.cc
+++ b/cc/test/pixel_test_output_surface.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "cc/output/output_surface_client.h"
+#include "third_party/khronos/GLES2/gl2.h"
#include "ui/gfx/transform.h"
namespace cc {
@@ -54,4 +55,11 @@ void PixelTestOutputSurface::SwapBuffers(CompositorFrame* frame) {
client_->DidSwapBuffers();
}
+uint32_t PixelTestOutputSurface::GetFramebufferCopyTextureFormat() {
+ // This format will work if the |context_provider| has an RGB or RGBA
+ // framebuffer. For now assume tests do not want/care about alpha in
+ // the root render pass.
+ return GL_RGB;
+}
+
} // namespace cc
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698