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

Unified Diff: cc/output/direct_renderer.cc

Issue 2674493003: Add compositor support for half-float RGBA buffers and textures (Closed)
Patch Set: Don't enable on non-ES3 yet Created 3 years, 10 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
« no previous file with comments | « cc/output/direct_renderer.h ('k') | cc/output/gl_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index bc2b1cb782d2fe90b45a103924f0f1fcabc54393..cd4bfa5006e9eb30ab850e1dcd83f1d5b9e41ff8 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -609,9 +609,9 @@ bool DirectRenderer::UseRenderPass(DrawingFrame* frame,
size.Enlarge(enlarge_pass_texture_amount_.width(),
enlarge_pass_texture_amount_.height());
if (!texture->id()) {
- texture->Allocate(
- size, ResourceProvider::TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER,
- resource_provider_->best_texture_format(), frame->device_color_space);
+ texture->Allocate(size,
+ ResourceProvider::TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER,
+ BackbufferFormat(), frame->device_color_space);
}
DCHECK(texture->id());
« no previous file with comments | « cc/output/direct_renderer.h ('k') | cc/output/gl_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698