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

Side by Side Diff: mojo/examples/compositor_app/compositor_host.cc

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
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 #include "mojo/examples/compositor_app/compositor_host.h" 5 #include "mojo/examples/compositor_app/compositor_host.h"
6 6
7 #include "cc/layers/layer.h" 7 #include "cc/layers/layer.h"
8 #include "cc/layers/solid_color_layer.h" 8 #include "cc/layers/solid_color_layer.h"
9 #include "cc/output/context_provider.h" 9 #include "cc/output/context_provider.h"
10 #include "cc/output/output_surface.h" 10 #include "cc/output/output_surface.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // cc::ContextProvider implementation. 23 // cc::ContextProvider implementation.
24 virtual bool BindToCurrentThread() OVERRIDE { return true; } 24 virtual bool BindToCurrentThread() OVERRIDE { return true; }
25 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE { 25 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE {
26 return gles2_client_impl_->Interface(); 26 return gles2_client_impl_->Interface();
27 } 27 }
28 virtual gpu::ContextSupport* ContextSupport() OVERRIDE { 28 virtual gpu::ContextSupport* ContextSupport() OVERRIDE {
29 return gles2_client_impl_->Support(); 29 return gles2_client_impl_->Support();
30 } 30 }
31 virtual class GrContext* GrContext() OVERRIDE { return NULL; } 31 virtual class GrContext* GrContext() OVERRIDE { return NULL; }
32 virtual void MakeGrContextCurrent() OVERRIDE {}
33 virtual Capabilities ContextCapabilities() OVERRIDE { return capabilities_; } 32 virtual Capabilities ContextCapabilities() OVERRIDE { return capabilities_; }
34 virtual bool IsContextLost() OVERRIDE { 33 virtual bool IsContextLost() OVERRIDE {
35 return !gles2_client_impl_->Interface(); 34 return !gles2_client_impl_->Interface();
36 } 35 }
37 virtual void VerifyContexts() OVERRIDE {} 36 virtual void VerifyContexts() OVERRIDE {}
38 virtual bool DestroyedOnMainThread() OVERRIDE { 37 virtual bool DestroyedOnMainThread() OVERRIDE {
39 return !gles2_client_impl_->Interface(); 38 return !gles2_client_impl_->Interface();
40 } 39 }
41 virtual void SetLostContextCallback( 40 virtual void SetLostContextCallback(
42 const LostContextCallback& lost_context_callback) OVERRIDE {} 41 const LostContextCallback& lost_context_callback) OVERRIDE {}
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void CompositorHost::DidCommit() {} 120 void CompositorHost::DidCommit() {}
122 void CompositorHost::DidCommitAndDrawFrame() {} 121 void CompositorHost::DidCommitAndDrawFrame() {}
123 void CompositorHost::DidCompleteSwapBuffers() {} 122 void CompositorHost::DidCompleteSwapBuffers() {}
124 123
125 scoped_refptr<cc::ContextProvider> CompositorHost::OffscreenContextProvider() { 124 scoped_refptr<cc::ContextProvider> CompositorHost::OffscreenContextProvider() {
126 return NULL; 125 return NULL;
127 } 126 }
128 127
129 } // namespace examples 128 } // namespace examples
130 } // namespace mojo 129 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/aura_demo/demo_context_factory.cc ('k') | webkit/common/gpu/context_provider_in_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698