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

Unified Diff: cc/output/direct_renderer.cc

Issue 2676153002: Revert of Add compositor support for half-float RGBA buffers and textures (Closed)
Patch Set: 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 cd4bfa5006e9eb30ab850e1dcd83f1d5b9e41ff8..bc2b1cb782d2fe90b45a103924f0f1fcabc54393 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -609,9 +609,9 @@
size.Enlarge(enlarge_pass_texture_amount_.width(),
enlarge_pass_texture_amount_.height());
if (!texture->id()) {
- texture->Allocate(size,
- ResourceProvider::TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER,
- BackbufferFormat(), frame->device_color_space);
+ texture->Allocate(
+ size, ResourceProvider::TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER,
+ resource_provider_->best_texture_format(), 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