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

Unified Diff: ui/gfx/gl/gl_surface_nsview.mm

Issue 8687016: GLContextNSView should not assume concrete type GLSurface is GLSurfaceNSView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/gl/gl_surface_nsview.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_surface_nsview.mm
diff --git a/ui/gfx/gl/gl_surface_nsview.mm b/ui/gfx/gl/gl_surface_nsview.mm
index 0c7f3aab5fca5017f45b45187fa859bbd5307bcd..e03cb3bbf41f775bab286959841947b0aabc20ac 100644
--- a/ui/gfx/gl/gl_surface_nsview.mm
+++ b/ui/gfx/gl/gl_surface_nsview.mm
@@ -39,8 +39,9 @@ void* GLSurfaceNSView::GetHandle() {
return view_;
}
-void GLSurfaceNSView::SetGLContext(GLContextNSView* context) {
- context_ = context;
+bool GLSurfaceNSView::OnMakeCurrent(GLContext* context) {
+ context_ = static_cast<GLContextNSView *>(context);
Ken Russell (switch to Gerrit) 2011/11/30 00:39:01 Given the other cleanup in this CL, the downcast i
+ return true;
}
} // namespace gfx
« no previous file with comments | « ui/gfx/gl/gl_surface_nsview.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698