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; |
} |