Index: app/gfx/gl/gl_context.cc |
diff --git a/app/gfx/gl/gl_context.cc b/app/gfx/gl/gl_context.cc |
index a07d30af03a6df9a817c9a6d60739d28b496c326..c0d6135c36f1d9869e0cced46011f822df9a1dbb 100644 |
--- a/app/gfx/gl/gl_context.cc |
+++ b/app/gfx/gl/gl_context.cc |
@@ -13,6 +13,15 @@ |
namespace gfx { |
+void GLContext::SetSize(gfx::Size size) { |
+ if (set_size_callback_.get()) |
+ set_size_callback_->Run(size); |
+} |
+ |
+void GLContext::RegisterSetSizeCallback(Callback1<gfx::Size>::Type* callback) { |
+ set_size_callback_.reset(callback); |
+} |
+ |
std::string GLContext::GetExtensions() { |
DCHECK(IsCurrent()); |
return std::string(reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS))); |