diff options
author | jbauman <jbauman@chromium.org> | 2015-10-29 19:33:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-30 02:34:40 +0000 |
commit | ce45e11f6759070f4f35f9a3f9d2ea33cb765c69 (patch) | |
tree | c01bcc7c0b91c0b0f9c1a9e9217b6edcb81a68c6 /ui/gl/gl_surface.h | |
parent | 2779a2559c0bd8b3dec859d98951a968c54fe0db (diff) | |
download | chromium_src-ce45e11f6759070f4f35f9a3f9d2ea33cb765c69.zip chromium_src-ce45e11f6759070f4f35f9a3f9d2ea33cb765c69.tar.gz chromium_src-ce45e11f6759070f4f35f9a3f9d2ea33cb765c69.tar.bz2 |
GLES2CmdDecoder should resize GLSurface using GLSurface::Resize
A special resize callback is unnecessary because the decoder has access to the GLSurface and can call Resize on that.
Review URL: https://codereview.chromium.org/1420503011
Cr-Commit-Position: refs/heads/master@{#357029}
Diffstat (limited to 'ui/gl/gl_surface.h')
-rw-r--r-- | ui/gl/gl_surface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h index b928c67..7fc65f7 100644 --- a/ui/gl/gl_surface.h +++ b/ui/gl/gl_surface.h @@ -43,7 +43,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(); @@ -195,7 +195,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; |