| Index: content/browser/gpu/compositor_util.cc
|
| diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
|
| index 0921c99ccde118f58f0d695246d4d56101226444..7983f3454d081b1015a41ca2d497f638be054110 100644
|
| --- a/content/browser/gpu/compositor_util.cc
|
| +++ b/content/browser/gpu/compositor_util.cc
|
| @@ -400,4 +400,20 @@ std::vector<std::string> GetDriverBugWorkarounds() {
|
| return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
|
| }
|
|
|
| +cc::BufferToTextureTargetMap GetBufferToTextureTargetMap() {
|
| + 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;
|
| + }
|
| + }
|
| + return image_targets;
|
| +}
|
| +
|
| } // namespace content
|
|
|