Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: gpu/command_buffer/common/unittest_main.cc

Issue 2525483005: Remove SurfaceTextureManager (Closed)
Patch Set: Updated a comment in GpuSurfaceTracker Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/test/launcher/unit_test_launcher.h" 7 #include "base/test/launcher/unit_test_launcher.h"
8 #include "base/test/test_io_thread.h" 8 #include "base/test/test_io_thread.h"
9 #include "base/test/test_suite.h" 9 #include "base/test/test_suite.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "mojo/edk/embedder/embedder.h" 11 #include "mojo/edk/embedder/embedder.h"
12 12
13 #if defined(OS_ANDROID)
14 #include "gpu/ipc/client/android/in_process_surface_texture_manager.h"
15 #endif
16
17 namespace { 13 namespace {
18 14
19 class GpuTestSuite : public base::TestSuite { 15 class GpuTestSuite : public base::TestSuite {
20 public: 16 public:
21 GpuTestSuite(int argc, char** argv); 17 GpuTestSuite(int argc, char** argv);
22 ~GpuTestSuite() override; 18 ~GpuTestSuite() override;
23 19
24 protected: 20 protected:
25 void Initialize() override; 21 void Initialize() override;
26 22
27 private: 23 private:
28 DISALLOW_COPY_AND_ASSIGN(GpuTestSuite); 24 DISALLOW_COPY_AND_ASSIGN(GpuTestSuite);
29 }; 25 };
30 26
31 GpuTestSuite::GpuTestSuite(int argc, char** argv) 27 GpuTestSuite::GpuTestSuite(int argc, char** argv)
32 : base::TestSuite(argc, argv) {} 28 : base::TestSuite(argc, argv) {}
33 29
34 GpuTestSuite::~GpuTestSuite() {} 30 GpuTestSuite::~GpuTestSuite() {}
35 31
36 void GpuTestSuite::Initialize() { 32 void GpuTestSuite::Initialize() {
ncarter (slow) 2016/12/01 23:20:08 Looks like you can delete this override.
tguilbert 2016/12/02 00:01:52 Done.
37 base::TestSuite::Initialize(); 33 base::TestSuite::Initialize();
38 #if defined(OS_ANDROID)
39 gpu::SurfaceTextureManager::SetInstance(
40 gpu::InProcessSurfaceTextureManager::GetInstance());
41 #endif
42 } 34 }
43 35
44 } // namespace 36 } // namespace
45 37
46 int main(int argc, char** argv) { 38 int main(int argc, char** argv) {
47 base::CommandLine::Init(argc, argv); 39 base::CommandLine::Init(argc, argv);
48 GpuTestSuite test_suite(argc, argv); 40 GpuTestSuite test_suite(argc, argv);
49 41
50 mojo::edk::Init(); 42 mojo::edk::Init();
51 43
52 return base::LaunchUnitTests( 44 return base::LaunchUnitTests(
53 argc, argv, 45 argc, argv,
54 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); 46 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
55 } 47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698