Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1247)

Unified Diff: cc/output/direct_renderer.cc

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and feedback Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698