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

Side by Side Diff: cc/test/test_in_process_context_provider.h

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: convert newly added scoped_ptr's Created 4 years, 8 months 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 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>
11
10 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
11 #include "cc/output/context_provider.h" 13 #include "cc/output/context_provider.h"
12 #include "cc/test/test_gpu_memory_buffer_manager.h" 14 #include "cc/test/test_gpu_memory_buffer_manager.h"
13 #include "cc/test/test_image_factory.h" 15 #include "cc/test/test_image_factory.h"
14 #include "skia/ext/refptr.h" 16 #include "skia/ext/refptr.h"
15 17
16 class GrContext; 18 class GrContext;
17 19
18 namespace gpu { 20 namespace gpu {
19 class GLInProcessContext; 21 class GLInProcessContext;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 54 TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
53 TestImageFactory image_factory_; 55 TestImageFactory image_factory_;
54 std::unique_ptr<gpu::GLInProcessContext> context_; 56 std::unique_ptr<gpu::GLInProcessContext> context_;
55 skia::RefPtr<class GrContext> gr_context_; 57 skia::RefPtr<class GrContext> gr_context_;
56 base::Lock context_lock_; 58 base::Lock context_lock_;
57 }; 59 };
58 60
59 } // namespace cc 61 } // namespace cc
60 62
61 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 63 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698