OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <cmath> | 9 #include <cmath> |
10 #include <string> | 10 #include <string> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 attributes.bind_generates_resource = false; | 67 attributes.bind_generates_resource = false; |
68 | 68 |
69 context_.reset(gpu::GLInProcessContext::Create( | 69 context_.reset(gpu::GLInProcessContext::Create( |
70 nullptr, /* service */ | 70 nullptr, /* service */ |
71 nullptr, /* surface */ | 71 nullptr, /* surface */ |
72 true, /* offscreen */ | 72 true, /* offscreen */ |
73 gfx::kNullAcceleratedWidget, /* window */ | 73 gfx::kNullAcceleratedWidget, /* window */ |
74 nullptr, /* share_context */ | 74 nullptr, /* share_context */ |
75 attributes, gpu::SharedMemoryLimits(), | 75 attributes, gpu::SharedMemoryLimits(), |
76 nullptr, /* gpu_memory_buffer_manager */ | 76 nullptr, /* gpu_memory_buffer_manager */ |
77 nullptr /* image_factory */)); | 77 nullptr, /* image_factory */ |
| 78 nullptr /* task_runner */)); |
78 gl_ = context_->GetImplementation(); | 79 gl_ = context_->GetImplementation(); |
79 gpu::ContextSupport* support = context_->GetImplementation(); | 80 gpu::ContextSupport* support = context_->GetImplementation(); |
80 | 81 |
81 helper_.reset(new display_compositor::GLHelper(gl_, support)); | 82 helper_.reset(new display_compositor::GLHelper(gl_, support)); |
82 helper_scaling_.reset( | 83 helper_scaling_.reset( |
83 new display_compositor::GLHelperScaling(gl_, helper_.get())); | 84 new display_compositor::GLHelperScaling(gl_, helper_.get())); |
84 } | 85 } |
85 | 86 |
86 void TearDown() override { | 87 void TearDown() override { |
87 helper_scaling_.reset(nullptr); | 88 helper_scaling_.reset(nullptr); |
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1426 } | 1427 } |
1427 } | 1428 } |
1428 } | 1429 } |
1429 | 1430 |
1430 TEST_F(GLHelperTest, CheckOptimizations) { | 1431 TEST_F(GLHelperTest, CheckOptimizations) { |
1431 // Test in baseclass since it is friends with GLHelperScaling | 1432 // Test in baseclass since it is friends with GLHelperScaling |
1432 CheckOptimizationsTest(); | 1433 CheckOptimizationsTest(); |
1433 } | 1434 } |
1434 | 1435 |
1435 } // namespace display_compositor | 1436 } // namespace display_compositor |
OLD | NEW |