Index: cc/trees/layer_tree_host_impl.cc |
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc |
index ea30d8517395eed55d388bf2db0c7048ea3c3353..d572f0526c90d87e1d4c2d929c257d61cb90edae 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -2018,14 +2018,20 @@ void LayerTreeHostImpl::CreateResourceAndRasterWorkerPool( |
if (GetRendererCapabilities().using_image) { |
unsigned image_target = GL_TEXTURE_2D; |
-#if defined(OS_MACOSX) |
- // GL_TEXTURE_RECTANGLE_ARB target is required by IOSurface backed images. |
- DCHECK(context_provider->ContextCapabilities().gpu.texture_rectangle); |
- image_target = GL_TEXTURE_RECTANGLE_ARB; |
-#endif |
if (settings_.use_image_external) { |
DCHECK(context_provider->ContextCapabilities().gpu.egl_image_external); |
image_target = GL_TEXTURE_EXTERNAL_OES; |
+#ifndef OS_ANDROID |
+ NOTREACHED(); |
+#endif |
+ } |
+ if (settings_.use_image_io_surface) { |
+ // GL_TEXTURE_RECTANGLE_ARB target is required by IOSurface backed images. |
+ DCHECK(context_provider->ContextCapabilities().gpu.texture_rectangle); |
+ image_target = GL_TEXTURE_RECTANGLE_ARB; |
+#ifndef OS_MACOSX |
+ NOTREACHED(); |
+#endif |
} |
if (settings_.use_zero_copy || IsSynchronousSingleThreaded()) { |