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

Unified Diff: ui/gl/gl_surface_cgl.cc

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 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
« no previous file with comments | « ui/gl/gl_context_cgl.cc ('k') | ui/gl/gl_surface_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_cgl.cc
diff --git a/ui/gl/gl_surface_cgl.cc b/ui/gl/gl_surface_cgl.cc
index 6c35693bdccdc2d4e6f1a5988735b0a47ef58264..ce84a24d56cdbff2e44c97542dbe04ee308c8c1d 100644
--- a/ui/gl/gl_surface_cgl.cc
+++ b/ui/gl/gl_surface_cgl.cc
@@ -78,6 +78,14 @@ bool NoOpGLSurfaceCGL::Initialize() {
void NoOpGLSurfaceCGL::Destroy() {
}
+// bool GLSurfaceNSView::Resize(const gfx::Size& size) {
+// CGFloat reverse_scale = 1.0 / scaleFactorForView(view_);
+// gfx::Size view_size = gfx::ToFlooredSize(gfx::ScaleSize(size,
+// reverse_scale));
+// [view_ setFrameSize:NSSizeFromCGSize(view_size.ToCGSize())];
+// return true;
+//}
+
bool NoOpGLSurfaceCGL::IsOffscreen() {
return true;
}
« no previous file with comments | « ui/gl/gl_context_cgl.cc ('k') | ui/gl/gl_surface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698