| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/memory/discardable_memory.h" | 14 #include "base/memory/discardable_memory.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" | 18 #include "base/threading/sequenced_worker_pool.h" |
| 19 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
| 20 #include "cc/output/buffer_to_texture_target_map.h" | 20 #include "cc/output/buffer_to_texture_target_map.h" |
| 21 #include "content/app/mojo/mojo_init.h" | 21 #include "content/app/mojo/mojo_init.h" |
| 22 #include "content/child/child_gpu_memory_buffer_manager.h" | |
| 23 #include "content/common/in_process_child_thread_params.h" | 22 #include "content/common/in_process_child_thread_params.h" |
| 24 #include "content/common/resource_messages.h" | 23 #include "content/common/resource_messages.h" |
| 25 #include "content/common/service_manager/child_connection.h" | 24 #include "content/common/service_manager/child_connection.h" |
| 26 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
| 27 #include "content/public/browser/content_browser_client.h" | 26 #include "content/public/browser/content_browser_client.h" |
| 28 #include "content/public/common/content_client.h" | 27 #include "content/public/common/content_client.h" |
| 29 #include "content/public/common/content_switches.h" | 28 #include "content/public/common/content_switches.h" |
| 30 #include "content/public/common/service_manager_connection.h" | 29 #include "content/public/common/service_manager_connection.h" |
| 31 #include "content/public/common/service_names.mojom.h" | 30 #include "content/public/common/service_names.mojom.h" |
| 32 #include "content/public/renderer/content_renderer_client.h" | 31 #include "content/public/renderer/content_renderer_client.h" |
| 33 #include "content/public/test/content_browser_test.h" | 32 #include "content/public/test/content_browser_test.h" |
| 34 #include "content/public/test/content_browser_test_utils.h" | 33 #include "content/public/test/content_browser_test_utils.h" |
| 35 #include "content/public/test/test_browser_thread_bundle.h" | 34 #include "content/public/test/test_browser_thread_bundle.h" |
| 36 #include "content/public/test/test_content_client_initializer.h" | 35 #include "content/public/test/test_content_client_initializer.h" |
| 37 #include "content/public/test/test_service_manager_context.h" | 36 #include "content/public/test/test_service_manager_context.h" |
| 38 #include "content/renderer/render_process_impl.h" | 37 #include "content/renderer/render_process_impl.h" |
| 39 #include "content/test/mock_render_process.h" | 38 #include "content/test/mock_render_process.h" |
| 40 #include "gpu/GLES2/gl2extchromium.h" | 39 #include "gpu/GLES2/gl2extchromium.h" |
| 40 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" |
| 41 #include "gpu/ipc/host/gpu_switches.h" | 41 #include "gpu/ipc/host/gpu_switches.h" |
| 42 #include "ipc/ipc.mojom.h" | 42 #include "ipc/ipc.mojom.h" |
| 43 #include "ipc/ipc_channel_mojo.h" | 43 #include "ipc/ipc_channel_mojo.h" |
| 44 #include "mojo/edk/embedder/embedder.h" | 44 #include "mojo/edk/embedder/embedder.h" |
| 45 #include "mojo/edk/test/scoped_ipc_support.h" | 45 #include "mojo/edk/test/scoped_ipc_support.h" |
| 46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
| 47 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" | 47 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" |
| 48 #include "ui/gfx/buffer_format_util.h" | 48 #include "ui/gfx/buffer_format_util.h" |
| 49 | 49 |
| 50 // IPC messages for testing ---------------------------------------------------- | 50 // IPC messages for testing ---------------------------------------------------- |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // These formats are guaranteed to work on all platforms. | 373 // These formats are guaranteed to work on all platforms. |
| 374 ::testing::Values(gfx::BufferFormat::R_8, | 374 ::testing::Values(gfx::BufferFormat::R_8, |
| 375 gfx::BufferFormat::BGR_565, | 375 gfx::BufferFormat::BGR_565, |
| 376 gfx::BufferFormat::RGBA_4444, | 376 gfx::BufferFormat::RGBA_4444, |
| 377 gfx::BufferFormat::RGBA_8888, | 377 gfx::BufferFormat::RGBA_8888, |
| 378 gfx::BufferFormat::BGRA_8888, | 378 gfx::BufferFormat::BGRA_8888, |
| 379 gfx::BufferFormat::YVU_420))); | 379 gfx::BufferFormat::YVU_420))); |
| 380 | 380 |
| 381 } // namespace | 381 } // namespace |
| 382 } // namespace content | 382 } // namespace content |
| OLD | NEW |