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

Unified Diff: ui/gl/gl_surface.h

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 | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index 5d98253910d4993e51517e0d68a344f0d016bff8..223e9775aa5be5240f09379945d553a2e42131d0 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -40,7 +40,7 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// Destroys the surface.
virtual void Destroy() = 0;
- virtual bool Resize(const gfx::Size& size);
+ virtual bool Resize(const gfx::Size& size, float scale_factor);
// Recreate the surface without changing the size.
virtual bool Recreate();
@@ -192,7 +192,7 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
bool Initialize() override;
void Destroy() override;
- bool Resize(const gfx::Size& size) override;
+ bool Resize(const gfx::Size& size, float scale_factor) override;
bool Recreate() override;
bool DeferDraws() override;
bool IsOffscreen() override;
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698