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

Unified Diff: ui/gfx/gl/gl_context_stub.cc

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/gl/gl_context_stub.cc
===================================================================
--- ui/gfx/gl/gl_context_stub.cc (revision 86168)
+++ ui/gfx/gl/gl_context_stub.cc (working copy)
@@ -12,30 +12,32 @@
GLContextStub::~GLContextStub() {
}
-bool GLContextStub::MakeCurrent() {
+bool GLContextStub::Initialize(GLContext* shared_context,
+ GLSurface* compatible_surface) {
return true;
}
-bool GLContextStub::IsCurrent() {
+void GLContextStub::Destroy() {
+}
+
+bool GLContextStub::MakeCurrent(GLSurface* surface) {
return true;
}
-bool GLContextStub::IsOffscreen() {
- return false;
+void GLContextStub::ReleaseCurrent(GLSurface* surface) {
}
-bool GLContextStub::SwapBuffers() {
+bool GLContextStub::IsCurrent(GLSurface* surface) {
return true;
}
-gfx::Size GLContextStub::GetSize() {
- return size_;
-}
-
void* GLContextStub::GetHandle() {
return NULL;
}
+void GLContextStub::SetSwapInterval(int interval) {
+}
+
std::string GLContextStub::GetExtensions() {
return std::string();
}

Powered by Google App Engine
This is Rietveld 408576698