| 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 "base/json/json_reader.h" | 5 #include "base/json/json_reader.h" |
| 6 #include "base/memory/ref_counted_memory.h" | 6 #include "base/memory/ref_counted_memory.h" |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/test/launcher/unit_test_launcher.h" | 9 #include "base/test/launcher/unit_test_launcher.h" |
| 10 #include "base/test/test_suite.h" | 10 #include "base/test/test_suite.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 attributes.bind_generates_resource = false; | 39 attributes.bind_generates_resource = false; |
| 40 | 40 |
| 41 context_.reset(gpu::GLInProcessContext::Create( | 41 context_.reset(gpu::GLInProcessContext::Create( |
| 42 nullptr, /* service */ | 42 nullptr, /* service */ |
| 43 nullptr, /* surface */ | 43 nullptr, /* surface */ |
| 44 true, /* offscreen */ | 44 true, /* offscreen */ |
| 45 gfx::kNullAcceleratedWidget, /* window */ | 45 gfx::kNullAcceleratedWidget, /* window */ |
| 46 nullptr, /* share_context */ | 46 nullptr, /* share_context */ |
| 47 attributes, gpu::SharedMemoryLimits(), | 47 attributes, gpu::SharedMemoryLimits(), |
| 48 nullptr, /* gpu_memory_buffer_manager */ | 48 nullptr, /* gpu_memory_buffer_manager */ |
| 49 nullptr /* image_factory */)); | 49 nullptr, /* image_factory */ |
| 50 nullptr /* task_runner */)); |
| 50 gl_ = context_->GetImplementation(); | 51 gl_ = context_->GetImplementation(); |
| 51 gpu::ContextSupport* support = context_->GetImplementation(); | 52 gpu::ContextSupport* support = context_->GetImplementation(); |
| 52 | 53 |
| 53 helper_.reset(new display_compositor::GLHelper(gl_, support)); | 54 helper_.reset(new display_compositor::GLHelper(gl_, support)); |
| 54 } | 55 } |
| 55 | 56 |
| 56 void TearDown() override { | 57 void TearDown() override { |
| 57 helper_.reset(NULL); | 58 helper_.reset(NULL); |
| 58 context_.reset(NULL); | 59 context_.reset(NULL); |
| 59 } | 60 } |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 INSTANTIATE_TEST_CASE_P( | 546 INSTANTIATE_TEST_CASE_P( |
| 546 , | 547 , |
| 547 YUVReadbackPixelTest, | 548 YUVReadbackPixelTest, |
| 548 ::testing::Combine( | 549 ::testing::Combine( |
| 549 ::testing::Bool(), | 550 ::testing::Bool(), |
| 550 ::testing::Bool(), | 551 ::testing::Bool(), |
| 551 ::testing::Range<unsigned int>(0, arraysize(kYUVReadbackSizes)), | 552 ::testing::Range<unsigned int>(0, arraysize(kYUVReadbackSizes)), |
| 552 ::testing::Range<unsigned int>(0, arraysize(kYUVReadbackSizes)))); | 553 ::testing::Range<unsigned int>(0, arraysize(kYUVReadbackSizes)))); |
| 553 | 554 |
| 554 } // namespace display_compositor | 555 } // namespace display_compositor |
| OLD | NEW |