| 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/test/content_test_suite.h" | 5 #include "content/test/content_test_suite.h" |
| 6 | 6 |
| 7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
| 23 #include "ui/gfx/win/dpi.h" | 23 #include "ui/gfx/win/dpi.h" |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
| 27 #include "base/mac/scoped_nsautorelease_pool.h" | 27 #include "base/mac/scoped_nsautorelease_pool.h" |
| 28 #include "base/test/mock_chrome_application_mac.h" | 28 #include "base/test/mock_chrome_application_mac.h" |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 #if defined(OS_ANDROID) | 31 #if defined(OS_ANDROID) |
| 32 #include "content/browser/android/in_process_surface_texture_manager.h" | 32 #include "content/browser/media/android/browser_media_player_manager.h" |
| 33 #include "gpu/ipc/client/android/in_process_surface_texture_manager.h" |
| 33 #endif | 34 #endif |
| 34 | 35 |
| 35 #if defined(USE_OZONE) | 36 #if defined(USE_OZONE) |
| 36 #include "ui/ozone/public/client_native_pixmap_factory.h" | 37 #include "ui/ozone/public/client_native_pixmap_factory.h" |
| 37 #endif | 38 #endif |
| 38 | 39 |
| 39 namespace content { | 40 namespace content { |
| 40 namespace { | 41 namespace { |
| 41 | 42 |
| 42 class TestInitializationListener : public testing::EmptyTestEventListener { | 43 class TestInitializationListener : public testing::EmptyTestEventListener { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 gpu::CollectBasicGraphicsInfo(&gpu_info); | 95 gpu::CollectBasicGraphicsInfo(&gpu_info); |
| 95 gpu::ApplyGpuDriverBugWorkarounds(gpu_info, | 96 gpu::ApplyGpuDriverBugWorkarounds(gpu_info, |
| 96 base::CommandLine::ForCurrentProcess()); | 97 base::CommandLine::ForCurrentProcess()); |
| 97 gfx::GLSurfaceTestSupport::InitializeOneOff(); | 98 gfx::GLSurfaceTestSupport::InitializeOneOff(); |
| 98 } | 99 } |
| 99 testing::TestEventListeners& listeners = | 100 testing::TestEventListeners& listeners = |
| 100 testing::UnitTest::GetInstance()->listeners(); | 101 testing::UnitTest::GetInstance()->listeners(); |
| 101 listeners.Append(new TestInitializationListener); | 102 listeners.Append(new TestInitializationListener); |
| 102 #if defined(OS_ANDROID) | 103 #if defined(OS_ANDROID) |
| 103 gpu::SurfaceTextureManager::SetInstance( | 104 gpu::SurfaceTextureManager::SetInstance( |
| 104 InProcessSurfaceTextureManager::GetInstance()); | 105 gpu::InProcessSurfaceTextureManager::GetInstance()); |
| 106 content::BrowserMediaPlayerManager::InitSurfaceTexturePeer(); |
| 105 #endif | 107 #endif |
| 106 #if defined(USE_OZONE) | 108 #if defined(USE_OZONE) |
| 107 if (!is_child_process) { | 109 if (!is_child_process) { |
| 108 client_native_pixmap_factory_ = ui::ClientNativePixmapFactory::Create(); | 110 client_native_pixmap_factory_ = ui::ClientNativePixmapFactory::Create(); |
| 109 ui::ClientNativePixmapFactory::SetInstance( | 111 ui::ClientNativePixmapFactory::SetInstance( |
| 110 client_native_pixmap_factory_.get()); | 112 client_native_pixmap_factory_.get()); |
| 111 } | 113 } |
| 112 #endif | 114 #endif |
| 113 } | 115 } |
| 114 | 116 |
| 115 } // namespace content | 117 } // namespace content |
| OLD | NEW |