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

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

Issue 645853008: Standardize usage of virtual/override/final in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted Created 6 years, 2 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/test_gpu_memory_buffer_manager.cc ('k') | cc/test/test_shared_bitmap_manager.h » ('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 "cc/output/context_provider.h" 8 #include "cc/output/context_provider.h"
9 #include "skia/ext/refptr.h" 9 #include "skia/ext/refptr.h"
10 10
11 class GrContext; 11 class GrContext;
12 12
13 namespace gpu { 13 namespace gpu {
14 class GLInProcessContext; 14 class GLInProcessContext;
15 } 15 }
16 16
17 namespace cc { 17 namespace cc {
18 18
19 scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext(); 19 scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext();
20 20
21 class TestInProcessContextProvider : public ContextProvider { 21 class TestInProcessContextProvider : public ContextProvider {
22 public: 22 public:
23 TestInProcessContextProvider(); 23 TestInProcessContextProvider();
24 24
25 virtual bool BindToCurrentThread() override; 25 bool BindToCurrentThread() override;
26 virtual gpu::gles2::GLES2Interface* ContextGL() override; 26 gpu::gles2::GLES2Interface* ContextGL() override;
27 virtual gpu::ContextSupport* ContextSupport() override; 27 gpu::ContextSupport* ContextSupport() override;
28 virtual class GrContext* GrContext() override; 28 class GrContext* GrContext() override;
29 virtual Capabilities ContextCapabilities() override; 29 Capabilities ContextCapabilities() override;
30 virtual bool IsContextLost() override; 30 bool IsContextLost() override;
31 virtual void VerifyContexts() override; 31 void VerifyContexts() override;
32 virtual void DeleteCachedResources() override; 32 void DeleteCachedResources() override;
33 virtual bool DestroyedOnMainThread() override; 33 bool DestroyedOnMainThread() override;
34 virtual void SetLostContextCallback( 34 void SetLostContextCallback(
35 const LostContextCallback& lost_context_callback) override; 35 const LostContextCallback& lost_context_callback) override;
36 virtual void SetMemoryPolicyChangedCallback( 36 void SetMemoryPolicyChangedCallback(
37 const MemoryPolicyChangedCallback& memory_policy_changed_callback) 37 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
38 override; 38 override;
39 39
40 protected: 40 protected:
41 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>; 41 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>;
42 virtual ~TestInProcessContextProvider(); 42 ~TestInProcessContextProvider() override;
43 43
44 private: 44 private:
45 scoped_ptr<gpu::GLInProcessContext> context_; 45 scoped_ptr<gpu::GLInProcessContext> context_;
46 skia::RefPtr<class GrContext> gr_context_; 46 skia::RefPtr<class GrContext> gr_context_;
47 }; 47 };
48 48
49 } // namespace cc 49 } // namespace cc
50 50
51 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 51 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/test/test_gpu_memory_buffer_manager.cc ('k') | cc/test/test_shared_bitmap_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698