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

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

Issue 135753006: cc: Delete ContextProvider::MakeGrContextCurrent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deleted GR_GL_PER_GL_FUNC_CALLBACK guard Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/test/test_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_CONTEXT_PROVIDER_H_ 5 #ifndef CC_TEST_TEST_CONTEXT_PROVIDER_H_
6 #define CC_TEST_TEST_CONTEXT_PROVIDER_H_ 6 #define CC_TEST_TEST_CONTEXT_PROVIDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 14 matching lines...) Expand all
25 25
26 static scoped_refptr<TestContextProvider> Create(); 26 static scoped_refptr<TestContextProvider> Create();
27 static scoped_refptr<TestContextProvider> Create( 27 static scoped_refptr<TestContextProvider> Create(
28 scoped_ptr<TestWebGraphicsContext3D> context); 28 scoped_ptr<TestWebGraphicsContext3D> context);
29 29
30 virtual bool BindToCurrentThread() OVERRIDE; 30 virtual bool BindToCurrentThread() OVERRIDE;
31 virtual Capabilities ContextCapabilities() OVERRIDE; 31 virtual Capabilities ContextCapabilities() OVERRIDE;
32 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE; 32 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE;
33 virtual gpu::ContextSupport* ContextSupport() OVERRIDE; 33 virtual gpu::ContextSupport* ContextSupport() OVERRIDE;
34 virtual class GrContext* GrContext() OVERRIDE; 34 virtual class GrContext* GrContext() OVERRIDE;
35 virtual void MakeGrContextCurrent() OVERRIDE;
36 virtual bool IsContextLost() OVERRIDE; 35 virtual bool IsContextLost() OVERRIDE;
37 virtual void VerifyContexts() OVERRIDE; 36 virtual void VerifyContexts() OVERRIDE;
38 virtual bool DestroyedOnMainThread() OVERRIDE; 37 virtual bool DestroyedOnMainThread() OVERRIDE;
39 virtual void SetLostContextCallback(const LostContextCallback& cb) OVERRIDE; 38 virtual void SetLostContextCallback(const LostContextCallback& cb) OVERRIDE;
40 virtual void SetMemoryPolicyChangedCallback( 39 virtual void SetMemoryPolicyChangedCallback(
41 const MemoryPolicyChangedCallback& cb) OVERRIDE; 40 const MemoryPolicyChangedCallback& cb) OVERRIDE;
42 41
43 TestWebGraphicsContext3D* TestContext3d(); 42 TestWebGraphicsContext3D* TestContext3d();
44 43
45 // This returns the TestWebGraphicsContext3D but is valid to call 44 // This returns the TestWebGraphicsContext3D but is valid to call
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 77
79 base::WeakPtrFactory<TestContextProvider> weak_ptr_factory_; 78 base::WeakPtrFactory<TestContextProvider> weak_ptr_factory_;
80 79
81 DISALLOW_COPY_AND_ASSIGN(TestContextProvider); 80 DISALLOW_COPY_AND_ASSIGN(TestContextProvider);
82 }; 81 };
83 82
84 } // namespace cc 83 } // namespace cc
85 84
86 #endif // CC_TEST_TEST_CONTEXT_PROVIDER_H_ 85 #endif // CC_TEST_TEST_CONTEXT_PROVIDER_H_
87 86
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698