Commit 0a3e955f authored by Xu Xing's avatar Xu Xing Committed by Commit Bot

CanPassBeDrawnDirectly do nothing on MAC

So return at start.
BUG=None

Change-Id: I47dc83ad746788cf769d9308b9920390d37cca65
Reviewed-on: https://chromium-review.googlesource.com/724720Reviewed-by: default avatarenne <enne@chromium.org>
Commit-Queue: Xing Xu <xing.xu@intel.com>
Cr-Commit-Position: refs/heads/master@{#509937}
parent 5ef6bd27
......@@ -1025,6 +1025,12 @@ gfx::QuadF MapQuadToLocalSpace(const gfx::Transform& device_transform,
}
const TileDrawQuad* GLRenderer::CanPassBeDrawnDirectly(const RenderPass* pass) {
#if defined(OS_MACOSX)
// On Macs, this path can sometimes lead to all black output.
// TODO(enne): investigate this and remove this hack.
return nullptr;
#endif
// Can only collapse a single tile quad.
if (pass->quad_list.size() != 1)
return nullptr;
......@@ -1065,11 +1071,6 @@ const TileDrawQuad* GLRenderer::CanPassBeDrawnDirectly(const RenderPass* pass) {
resource_provider_->GetResourceTextureTarget(tile_quad->resource_id());
if (target != GL_TEXTURE_2D)
return nullptr;
#if defined(OS_MACOSX)
// On Macs, this path can sometimes lead to all black output.
// TODO(enne): investigate this and remove this hack.
return nullptr;
#endif
return tile_quad;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment