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

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

Issue 1880823004: Move skia related files from content/common/gpu/client to gpu/skia_bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update 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
« no previous file with comments | « cc/test/DEPS ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
11 #include "cc/output/context_provider.h" 11 #include "cc/output/context_provider.h"
12 #include "cc/test/test_gpu_memory_buffer_manager.h" 12 #include "cc/test/test_gpu_memory_buffer_manager.h"
13 #include "cc/test/test_image_factory.h" 13 #include "cc/test/test_image_factory.h"
14 #include "skia/ext/refptr.h" 14 #include "skia/ext/refptr.h"
15 15
16 class GrContext; 16 class GrContext;
17 17
18 namespace gpu { 18 namespace gpu {
19 class GLInProcessContext; 19 class GLInProcessContext;
20 } 20 }
21 21
22 namespace skia_bindings {
23 class GrContextForGLES2Interface;
24 }
25
22 namespace cc { 26 namespace cc {
23 27
24 std::unique_ptr<gpu::GLInProcessContext> CreateTestInProcessContext(); 28 std::unique_ptr<gpu::GLInProcessContext> CreateTestInProcessContext();
25 std::unique_ptr<gpu::GLInProcessContext> CreateTestInProcessContext( 29 std::unique_ptr<gpu::GLInProcessContext> CreateTestInProcessContext(
26 TestGpuMemoryBufferManager* gpu_memory_buffer_manager, 30 TestGpuMemoryBufferManager* gpu_memory_buffer_manager,
27 TestImageFactory* image_factory, 31 TestImageFactory* image_factory,
28 gpu::GLInProcessContext* shared_context); 32 gpu::GLInProcessContext* shared_context);
29 33
30 class TestInProcessContextProvider : public ContextProvider { 34 class TestInProcessContextProvider : public ContextProvider {
31 public: 35 public:
(...skipping 13 matching lines...) Expand all
45 const LostContextCallback& lost_context_callback) override; 49 const LostContextCallback& lost_context_callback) override;
46 50
47 protected: 51 protected:
48 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>; 52 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>;
49 ~TestInProcessContextProvider() override; 53 ~TestInProcessContextProvider() override;
50 54
51 private: 55 private:
52 TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 56 TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
53 TestImageFactory image_factory_; 57 TestImageFactory image_factory_;
54 std::unique_ptr<gpu::GLInProcessContext> context_; 58 std::unique_ptr<gpu::GLInProcessContext> context_;
55 skia::RefPtr<class GrContext> gr_context_; 59 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_;
56 base::Lock context_lock_; 60 base::Lock context_lock_;
57 }; 61 };
58 62
59 } // namespace cc 63 } // namespace cc
60 64
61 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 65 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/test/DEPS ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698