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

Unified Diff: content/browser/renderer_host/render_process_host_impl.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 | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | gpu/ipc/host/gpu_memory_buffer_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fa2183bab1c09dd850da18ca0e94e119a202b52d..9915f4e5178b02d693dcdc23c735d7bd254b6132 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -170,6 +170,7 @@
#include "gpu/command_buffer/client/gpu_switches.h"
#include "gpu/command_buffer/common/gles2_cmd_utils.h"
#include "gpu/command_buffer/service/gpu_switches.h"
+#include "gpu/ipc/host/gpu_memory_buffer_support.h"
#include "ipc/ipc.mojom.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_channel_mojo.h"
@@ -1559,10 +1560,8 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
format_idx <= static_cast<int>(gfx::BufferFormat::LAST);
++format_idx) {
gfx::BufferFormat format = static_cast<gfx::BufferFormat>(format_idx);
- uint32_t target =
- BrowserGpuMemoryBufferManager::GetImageTextureTarget(format, usage);
- image_targets.insert(cc::BufferToTextureTargetMap::value_type(
- cc::BufferToTextureTargetKey(usage, format), target));
+ uint32_t target = gpu::GetImageTextureTarget(format, usage);
+ image_targets[std::make_pair(usage, format)] = target;
}
}
command_line->AppendSwitchASCII(
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | gpu/ipc/host/gpu_memory_buffer_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698