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

Unified Diff: cc/layers/heads_up_display_layer_impl.cc

Issue 486853002: cc: Use a normal texture for background texture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits in unittests Created 6 years, 4 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 | « no previous file | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/heads_up_display_layer_impl.cc
diff --git a/cc/layers/heads_up_display_layer_impl.cc b/cc/layers/heads_up_display_layer_impl.cc
index c46c1be1c6e3a705ab8ffcf256d328babd66ce22..fcb2733aee90279959fff97e43148cba86413eb4 100644
--- a/cc/layers/heads_up_display_layer_impl.cc
+++ b/cc/layers/heads_up_display_layer_impl.cc
@@ -98,9 +98,8 @@ bool HeadsUpDisplayLayerImpl::WillDraw(DrawMode draw_mode,
}
if (!hud_resource_->id()) {
- hud_resource_->Allocate(content_bounds(),
- ResourceProvider::TextureUsageAny,
- RGBA_8888);
+ hud_resource_->Allocate(
+ content_bounds(), ResourceProvider::TextureHintImmutable, RGBA_8888);
}
return LayerImpl::WillDraw(draw_mode, resource_provider);
« no previous file with comments | « no previous file | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698