| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/gpu/compositor_util.h" | 5 #include "content/browser/gpu/compositor_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/feature_list.h" | 12 #include "base/feature_list.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
| 17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 18 #include "base/sys_info.h" | 18 #include "base/sys_info.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "cc/base/math_util.h" | 20 #include "cc/base/math_util.h" |
| 21 #include "cc/base/switches.h" | 21 #include "cc/base/switches.h" |
| 22 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | |
| 23 #include "content/browser/gpu/gpu_data_manager_impl.h" | 22 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 24 #include "content/public/browser/gpu_utils.h" | 23 #include "content/public/browser/gpu_utils.h" |
| 25 #include "content/public/common/content_features.h" | 24 #include "content/public/common/content_features.h" |
| 26 #include "content/public/common/content_switches.h" | 25 #include "content/public/common/content_switches.h" |
| 27 #include "gpu/config/gpu_feature_type.h" | 26 #include "gpu/config/gpu_feature_type.h" |
| 28 #include "gpu/ipc/host/gpu_memory_buffer_support.h" | 27 #include "gpu/ipc/host/gpu_memory_buffer_support.h" |
| 29 #include "media/media_features.h" | 28 #include "media/media_features.h" |
| 30 #include "ui/gl/gl_switches.h" | 29 #include "ui/gl/gl_switches.h" |
| 31 | 30 |
| 32 namespace content { | 31 namespace content { |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 ++format_idx) { | 411 ++format_idx) { |
| 413 gfx::BufferFormat format = static_cast<gfx::BufferFormat>(format_idx); | 412 gfx::BufferFormat format = static_cast<gfx::BufferFormat>(format_idx); |
| 414 uint32_t target = gpu::GetImageTextureTarget(format, usage); | 413 uint32_t target = gpu::GetImageTextureTarget(format, usage); |
| 415 image_targets[std::make_pair(usage, format)] = target; | 414 image_targets[std::make_pair(usage, format)] = target; |
| 416 } | 415 } |
| 417 } | 416 } |
| 418 return image_targets; | 417 return image_targets; |
| 419 } | 418 } |
| 420 | 419 |
| 421 } // namespace content | 420 } // namespace content |
| OLD | NEW |