| 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 #ifndef CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 5 #ifndef CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| 6 #define CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 6 #define CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 13 #include "cc/output/context_provider.h" | 13 #include "cc/output/context_provider.h" |
| 14 #include "cc/test/test_gpu_memory_buffer_manager.h" | 14 #include "cc/test/test_gpu_memory_buffer_manager.h" |
| 15 #include "cc/test/test_image_factory.h" | 15 #include "cc/test/test_image_factory.h" |
| 16 #include "skia/ext/refptr.h" | |
| 17 | 16 |
| 18 class GrContext; | 17 class GrContext; |
| 19 | 18 |
| 20 namespace gpu { | 19 namespace gpu { |
| 21 class GLInProcessContext; | 20 class GLInProcessContext; |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace skia_bindings { | 23 namespace skia_bindings { |
| 25 class GrContextForGLES2Interface; | 24 class GrContextForGLES2Interface; |
| 26 } | 25 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 TestGpuMemoryBufferManager gpu_memory_buffer_manager_; | 57 TestGpuMemoryBufferManager gpu_memory_buffer_manager_; |
| 59 TestImageFactory image_factory_; | 58 TestImageFactory image_factory_; |
| 60 std::unique_ptr<gpu::GLInProcessContext> context_; | 59 std::unique_ptr<gpu::GLInProcessContext> context_; |
| 61 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 60 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; |
| 62 base::Lock context_lock_; | 61 base::Lock context_lock_; |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace cc | 64 } // namespace cc |
| 66 | 65 |
| 67 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 66 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
| OLD | NEW |