| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/child/child_thread_impl.h" | 5 #include "content/child/child_thread_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/memory/discardable_memory.h" | 13 #include "base/memory/discardable_memory.h" |
| 14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "content/child/child_discardable_shared_memory_manager.h" | 16 #include "content/child/child_discardable_shared_memory_manager.h" |
| 17 #include "content/child/child_gpu_memory_buffer_manager.h" | 17 #include "content/child/child_gpu_memory_buffer_manager.h" |
| 18 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" | |
| 19 #include "content/common/host_discardable_shared_memory_manager.h" | 18 #include "content/common/host_discardable_shared_memory_manager.h" |
| 20 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
| 21 #include "content/public/test/content_browser_test.h" | 20 #include "content/public/test/content_browser_test.h" |
| 22 #include "content/public/test/content_browser_test_utils.h" | 21 #include "content/public/test/content_browser_test_utils.h" |
| 23 #include "content/shell/browser/shell.h" | 22 #include "content/shell/browser/shell.h" |
| 23 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" |
| 24 #include "ui/gfx/buffer_format_util.h" | 24 #include "ui/gfx/buffer_format_util.h" |
| 25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 class ChildThreadImplBrowserTest : public ContentBrowserTest { | 30 class ChildThreadImplBrowserTest : public ContentBrowserTest { |
| 31 public: | 31 public: |
| 32 ChildThreadImplBrowserTest() | 32 ChildThreadImplBrowserTest() |
| 33 : child_gpu_memory_buffer_manager_(nullptr), | 33 : child_gpu_memory_buffer_manager_(nullptr), |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 kEnableNativeBuffers), | 199 kEnableNativeBuffers), |
| 200 // These formats are guaranteed to work on all platforms. | 200 // These formats are guaranteed to work on all platforms. |
| 201 ::testing::Values(gfx::BufferFormat::R_8, | 201 ::testing::Values(gfx::BufferFormat::R_8, |
| 202 gfx::BufferFormat::RGBA_4444, | 202 gfx::BufferFormat::RGBA_4444, |
| 203 gfx::BufferFormat::RGBA_8888, | 203 gfx::BufferFormat::RGBA_8888, |
| 204 gfx::BufferFormat::BGRA_8888, | 204 gfx::BufferFormat::BGRA_8888, |
| 205 gfx::BufferFormat::YUV_420))); | 205 gfx::BufferFormat::YUV_420))); |
| 206 | 206 |
| 207 } // namespace | 207 } // namespace |
| 208 } // namespace content | 208 } // namespace content |
| OLD | NEW |