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

Side by Side Diff: cc/output/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 | « no previous file | cc/output/gl_renderer.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_OUTPUT_CONTEXT_PROVIDER_H_ 5 #ifndef CC_OUTPUT_CONTEXT_PROVIDER_H_
6 #define CC_OUTPUT_CONTEXT_PROVIDER_H_ 6 #define CC_OUTPUT_CONTEXT_PROVIDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 // Bind the 3d context to the current thread. This should be called before 25 // Bind the 3d context to the current thread. This should be called before
26 // accessing the contexts. Calling it more than once should have no effect. 26 // accessing the contexts. Calling it more than once should have no effect.
27 // Once this function has been called, the class should only be accessed 27 // Once this function has been called, the class should only be accessed
28 // from the same thread. 28 // from the same thread.
29 virtual bool BindToCurrentThread() = 0; 29 virtual bool BindToCurrentThread() = 0;
30 30
31 virtual gpu::gles2::GLES2Interface* ContextGL() = 0; 31 virtual gpu::gles2::GLES2Interface* ContextGL() = 0;
32 virtual gpu::ContextSupport* ContextSupport() = 0; 32 virtual gpu::ContextSupport* ContextSupport() = 0;
33 virtual class GrContext* GrContext() = 0; 33 virtual class GrContext* GrContext() = 0;
34 virtual void MakeGrContextCurrent() = 0;
35 34
36 struct Capabilities { 35 struct Capabilities {
37 gpu::Capabilities gpu; 36 gpu::Capabilities gpu;
38 size_t max_transfer_buffer_usage_bytes; 37 size_t max_transfer_buffer_usage_bytes;
39 38
40 CC_EXPORT Capabilities(); 39 CC_EXPORT Capabilities();
41 }; 40 };
42 41
43 // Returns the capabilities of the currently bound 3d context. 42 // Returns the capabilities of the currently bound 3d context.
44 virtual Capabilities ContextCapabilities() = 0; 43 virtual Capabilities ContextCapabilities() = 0;
(...skipping 26 matching lines...) Expand all
71 const MemoryPolicyChangedCallback& memory_policy_changed_callback) = 0; 70 const MemoryPolicyChangedCallback& memory_policy_changed_callback) = 0;
72 71
73 protected: 72 protected:
74 friend class base::RefCountedThreadSafe<ContextProvider>; 73 friend class base::RefCountedThreadSafe<ContextProvider>;
75 virtual ~ContextProvider() {} 74 virtual ~ContextProvider() {}
76 }; 75 };
77 76
78 } // namespace cc 77 } // namespace cc
79 78
80 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ 79 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698