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

Unified Diff: ui/gl/gl_surface_x11.cc

Issue 1420503011: GLES2CmdDecoder should resize GLSurface using GLSurface::Resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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_surface_ozone.cc ('k') | ui/ozone/demo/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_x11.cc
diff --git a/ui/gl/gl_surface_x11.cc b/ui/gl/gl_surface_x11.cc
index 4e14a43b4d12f851b7b9497192d019d334d2839e..5e8429fecc90bffa1ae7b028c700fae87b54eca3 100644
--- a/ui/gl/gl_surface_x11.cc
+++ b/ui/gl/gl_surface_x11.cc
@@ -30,7 +30,7 @@ class NativeViewGLSurfaceOSMesa : public GLSurfaceOSMesa {
// Implement a subset of GLSurface.
bool Initialize() override;
void Destroy() override;
- bool Resize(const gfx::Size& new_size) override;
+ bool Resize(const gfx::Size& new_size, float scale_factor) override;
bool IsOffscreen() override;
gfx::SwapResult SwapBuffers() override;
bool SupportsPostSubBuffer() override;
@@ -136,8 +136,9 @@ void NativeViewGLSurfaceOSMesa::Destroy() {
XSync(xdisplay_, False);
}
-bool NativeViewGLSurfaceOSMesa::Resize(const gfx::Size& new_size) {
- if (!GLSurfaceOSMesa::Resize(new_size))
+bool NativeViewGLSurfaceOSMesa::Resize(const gfx::Size& new_size,
+ float scale_factor) {
+ if (!GLSurfaceOSMesa::Resize(new_size, scale_factor))
return false;
XWindowAttributes attributes;
« no previous file with comments | « ui/gl/gl_surface_ozone.cc ('k') | ui/ozone/demo/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698