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

Unified Diff: cc/output/delegating_renderer.cc

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Add internalformat parameter to CreateImageCHROMIUM in fake_web_graphics_context_3d to fix clang bu… Created 7 years, 7 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/debug/fake_web_graphics_context_3d.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/delegating_renderer.cc
diff --git a/cc/output/delegating_renderer.cc b/cc/output/delegating_renderer.cc
index e3a784e6890a83f753b7c4c489c465ea223c232e..76093c410b8fed60ca9f8603cbd03f23b66d009b 100644
--- a/cc/output/delegating_renderer.cc
+++ b/cc/output/delegating_renderer.cc
@@ -80,22 +80,26 @@ bool DelegatingRenderer::Initialize() {
// TODO(danakj): We need non-GPU-specific paths for these things. This
// renderer shouldn't need to use context3d extensions directly.
- bool has_read_bgra = true;
- bool has_set_visibility = true;
- bool has_io_surface = true;
- bool has_arb_texture_rect = true;
- bool has_egl_image = true;
+ bool has_read_bgra = false;
+ bool has_set_visibility = false;
+ bool has_io_surface = false;
+ bool has_arb_texture_rect = false;
+ bool has_egl_image = false;
+ bool has_map_image = false;
for (size_t i = 0; i < extensions.size(); ++i) {
- if (extensions[i] == "GL_EXT_read_format_bgra")
+ if (extensions[i] == "GL_EXT_read_format_bgra") {
has_read_bgra = true;
- else if (extensions[i] == "GL_CHROMIUM_set_visibility")
+ } else if (extensions[i] == "GL_CHROMIUM_set_visibility") {
has_set_visibility = true;
- else if (extensions[i] == "GL_CHROMIUM_iosurface")
+ } else if (extensions[i] == "GL_CHROMIUM_iosurface") {
has_io_surface = true;
- else if (extensions[i] == "GL_ARB_texture_rectangle")
- has_arb_texture_rect = true;
- else if (extensions[i] == "GL_OES_EGL_image_external")
- has_egl_image = true;
+ } else if (extensions[i] == "GL_ARB_texture_rectangle") {
+ has_arb_texture_rect = true;
+ } else if (extensions[i] == "GL_OES_EGL_image_external") {
+ has_egl_image = true;
+ } else if (extensions[i] == "GL_CHROMIUM_map_image") {
+ has_map_image = true;
+ }
}
if (has_io_surface)
@@ -114,6 +118,8 @@ bool DelegatingRenderer::Initialize() {
capabilities_.using_egl_image = has_egl_image;
+ capabilities_.using_map_image = has_map_image;
+
return true;
}
« no previous file with comments | « cc/debug/fake_web_graphics_context_3d.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698