| Index: cc/output/direct_renderer.cc
|
| diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
|
| index c3a4d39b333ffa9cb63a66fd870d80b4e7903d80..8f0c4fcdb64d64ffbff5060a1485cf81643717a9 100644
|
| --- a/cc/output/direct_renderer.cc
|
| +++ b/cc/output/direct_renderer.cc
|
| @@ -399,7 +399,8 @@ bool DirectRenderer::UseRenderPass(DrawingFrame* frame,
|
| if (!texture->id() &&
|
| !texture->Allocate(size,
|
| RenderPassTextureFormat(render_pass),
|
| - ResourceProvider::TextureUsageFramebuffer))
|
| + ResourceProvider::TextureUsageFramebuffer,
|
| + RenderPassTextureType(render_pass)))
|
| return false;
|
|
|
| return BindFramebufferToTexture(frame, texture, render_pass->output_rect);
|
| @@ -424,4 +425,10 @@ GLenum DirectRenderer::RenderPassTextureFormat(const RenderPass* render_pass) {
|
| return GL_RGBA;
|
| }
|
|
|
| +// static
|
| +ResourceProvider::TextureType DirectRenderer::RenderPassTextureType(
|
| + const RenderPass* render_pass) {
|
| + return ResourceProvider::RGBA_8888;
|
| +}
|
| +
|
| } // namespace cc
|
|
|