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

Unified Diff: content/common/gpu/image_transport_surface_overlay_mac.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
Index: content/common/gpu/image_transport_surface_overlay_mac.h
diff --git a/content/common/gpu/image_transport_surface_overlay_mac.h b/content/common/gpu/image_transport_surface_overlay_mac.h
index e50c9d058a82d08d98d133f38ebd54dda38f8687..b9660713e3a50363fb74e668a335c12b0873add4 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.h
+++ b/content/common/gpu/image_transport_surface_overlay_mac.h
@@ -32,6 +32,7 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
// GLSurface implementation
bool Initialize() override;
void Destroy() override;
+ bool Resize(const gfx::Size& size, float scale_factor) override;
bool IsOffscreen() override;
gfx::SwapResult SwapBuffers() override;
gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override;
@@ -50,7 +51,6 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
// ImageTransportSurface implementation
void OnBufferPresented(
const AcceleratedSurfaceMsg_BufferPresented_Params& params) override;
- void OnResize(gfx::Size pixel_size, float scale_factor) override;
void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override;
// ui::GpuSwitchingObserver implementation.

Powered by Google App Engine
This is Rietveld 408576698