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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2895273002: Unified the use of BufferToTextureTargetMap for all the Processes (Closed)
Patch Set: Unified the use of BufferToTextureTargetMap for all the Processes Created 3 years, 6 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: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 3f18fa9012d39be745adae2d39e679720fe88a77..8f7cd43f69732cf3c3c58d600e08fa3de795f9e4 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -2022,17 +2022,7 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
command_line->AppendSwitch(cc::switches::kEnableCheckerImaging);
cc::BufferToTextureTargetMap image_targets;
- for (int usage_idx = 0; usage_idx <= static_cast<int>(gfx::BufferUsage::LAST);
- ++usage_idx) {
- gfx::BufferUsage usage = static_cast<gfx::BufferUsage>(usage_idx);
- for (int format_idx = 0;
- format_idx <= static_cast<int>(gfx::BufferFormat::LAST);
- ++format_idx) {
- gfx::BufferFormat format = static_cast<gfx::BufferFormat>(format_idx);
- uint32_t target = gpu::GetImageTextureTarget(format, usage);
- image_targets[std::make_pair(usage, format)] = target;
- }
- }
+ GetBufferToTextureTargetMap(&image_targets);
danakj 2017/06/28 17:00:19 either get rid of the |image_targets| and call Get
sujith 2017/06/30 07:49:04 Done.
command_line->AppendSwitchASCII(
switches::kContentImageTextureTarget,
cc::BufferToTextureTargetMapToString(image_targets));

Powered by Google App Engine
This is Rietveld 408576698