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

Side by Side Diff: mojo/examples/aura_demo/demo_context_factory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/aura_demo/demo_context_factory.h" 5 #include "mojo/examples/aura_demo/demo_context_factory.h"
6 6
7 #include "cc/output/context_provider.h" 7 #include "cc/output/context_provider.h"
8 #include "cc/output/output_surface.h" 8 #include "cc/output/output_surface.h"
9 #include "mojo/examples/aura_demo/root_window_host_mojo.h" 9 #include "mojo/examples/aura_demo/root_window_host_mojo.h"
10 #include "mojo/examples/compositor_app/gles2_client_impl.h" 10 #include "mojo/examples/compositor_app/gles2_client_impl.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // cc::ContextProvider implementation. 28 // cc::ContextProvider implementation.
29 virtual bool BindToCurrentThread() OVERRIDE { return true; } 29 virtual bool BindToCurrentThread() OVERRIDE { return true; }
30 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE { 30 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE {
31 return gles2_client_impl_->Interface(); 31 return gles2_client_impl_->Interface();
32 } 32 }
33 virtual gpu::ContextSupport* ContextSupport() OVERRIDE { 33 virtual gpu::ContextSupport* ContextSupport() OVERRIDE {
34 return gles2_client_impl_->Support(); 34 return gles2_client_impl_->Support();
35 } 35 }
36 virtual class GrContext* GrContext() OVERRIDE { return NULL; } 36 virtual class GrContext* GrContext() OVERRIDE { return NULL; }
37 virtual void MakeGrContextCurrent() OVERRIDE {}
38 virtual Capabilities ContextCapabilities() OVERRIDE { return capabilities_; } 37 virtual Capabilities ContextCapabilities() OVERRIDE { return capabilities_; }
39 virtual bool IsContextLost() OVERRIDE { 38 virtual bool IsContextLost() OVERRIDE {
40 return !gles2_client_impl_->Interface(); 39 return !gles2_client_impl_->Interface();
41 } 40 }
42 virtual void VerifyContexts() OVERRIDE {} 41 virtual void VerifyContexts() OVERRIDE {}
43 virtual bool DestroyedOnMainThread() OVERRIDE { 42 virtual bool DestroyedOnMainThread() OVERRIDE {
44 return !gles2_client_impl_->Interface(); 43 return !gles2_client_impl_->Interface();
45 } 44 }
46 virtual void SetLostContextCallback( 45 virtual void SetLostContextCallback(
47 const LostContextCallback& lost_context_callback) OVERRIDE {} 46 const LostContextCallback& lost_context_callback) OVERRIDE {}
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 122 }
124 123
125 void DemoContextFactory::RemoveCompositor(ui::Compositor* compositor) { 124 void DemoContextFactory::RemoveCompositor(ui::Compositor* compositor) {
126 } 125 }
127 126
128 bool DemoContextFactory::DoesCreateTestContexts() { return false; } 127 bool DemoContextFactory::DoesCreateTestContexts() { return false; }
129 128
130 } // namespace examples 129 } // namespace examples
131 } // namespace mojo 130 } // namespace mojo
132 131
OLDNEW
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | mojo/examples/compositor_app/compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698