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

Unified Diff: ui/compositor/compositor.cc

Issue 2585653003: gpu: Move buffer format to target texture map into gpu host. (Closed)
Patch Set: . Created 4 years 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 | « ui/aura/mus/mus_context_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index f2d08cde512820fb5ea9af028f7e25811b276e4d..3085eb364dd5f7db989fd6437711a885dd51c3c2 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -177,9 +177,8 @@ Compositor::Compositor(ui::ContextFactory* context_factory,
++format_idx) {
gfx::BufferFormat format = static_cast<gfx::BufferFormat>(format_idx);
uint32_t target = context_factory_->GetImageTextureTarget(format, usage);
- settings.renderer_settings.buffer_to_texture_target_map.insert(
- cc::BufferToTextureTargetMap::value_type(
- cc::BufferToTextureTargetKey(usage, format), target));
+ settings.renderer_settings
+ .buffer_to_texture_target_map[std::make_pair(usage, format)] = target;
}
}
« no previous file with comments | « ui/aura/mus/mus_context_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698