Index: cc/output/direct_renderer.cc |
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc |
index c3a4d39b333ffa9cb63a66fd870d80b4e7903d80..51ac56a1d932e68ad95daee619701438539fa876 100644 |
--- a/cc/output/direct_renderer.cc |
+++ b/cc/output/direct_renderer.cc |
@@ -168,7 +168,8 @@ void DirectRenderer::DecideRenderPassAllocationsForFrame( |
const RenderPass* render_pass_in_frame = it->second; |
gfx::Size required_size = RenderPassTextureSize(render_pass_in_frame); |
- GLenum required_format = RenderPassTextureFormat(render_pass_in_frame); |
+ ResourceFormat required_format = |
+ RenderPassTextureFormat(render_pass_in_frame); |
CachedResource* texture = pass_iter->second; |
DCHECK(texture); |
@@ -398,8 +399,8 @@ bool DirectRenderer::UseRenderPass(DrawingFrame* frame, |
enlarge_pass_texture_amount_.y()); |
if (!texture->id() && |
!texture->Allocate(size, |
- RenderPassTextureFormat(render_pass), |
- ResourceProvider::TextureUsageFramebuffer)) |
+ ResourceProvider::TextureUsageFramebuffer, |
+ RenderPassTextureFormat(render_pass))) |
return false; |
return BindFramebufferToTexture(frame, texture, render_pass->output_rect); |
@@ -420,8 +421,9 @@ gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { |
} |
// static |
-GLenum DirectRenderer::RenderPassTextureFormat(const RenderPass* render_pass) { |
- return GL_RGBA; |
+ResourceFormat DirectRenderer::RenderPassTextureFormat( |
+ const RenderPass* render_pass) { |
+ return RGBA_8888; |
} |
} // namespace cc |