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

Unified Diff: ui/ozone/platform/cast/gl_surface_cast.h

Issue 2673473002: Rename SwapBuffersWithDamage to SwapBuffersWithBounds (Closed)
Patch Set: fix windows compile warning Created 3 years, 10 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_switches.cc ('k') | ui/ozone/platform/cast/gl_surface_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/cast/gl_surface_cast.h
diff --git a/ui/ozone/platform/cast/gl_surface_cast.h b/ui/ozone/platform/cast/gl_surface_cast.h
index 383e341adc28d2ea97e40a426c29ca8b35440c23..9d37f9d08af733d7f5e71417c4c83e92da9eb064 100644
--- a/ui/ozone/platform/cast/gl_surface_cast.h
+++ b/ui/ozone/platform/cast/gl_surface_cast.h
@@ -22,11 +22,10 @@ class GLSurfaceCast : public gl::NativeViewGLSurfaceEGL {
GLSurfaceCast(gfx::AcceleratedWidget widget, SurfaceFactoryCast* parent);
// gl::GLSurface:
+ bool SupportsSwapBuffersWithBounds() override;
gfx::SwapResult SwapBuffers() override;
- gfx::SwapResult SwapBuffersWithDamage(int x,
- int y,
- int width,
- int height) override;
+ gfx::SwapResult SwapBuffersWithBounds(
+ const std::vector<gfx::Rect>& rects) override;
bool Resize(const gfx::Size& size,
float scale_factor,
bool has_alpha) override;
@@ -42,6 +41,7 @@ class GLSurfaceCast : public gl::NativeViewGLSurfaceEGL {
gfx::AcceleratedWidget widget_;
SurfaceFactoryCast* parent_;
+ bool supports_swap_buffer_with_bounds_;
private:
DISALLOW_COPY_AND_ASSIGN(GLSurfaceCast);
« no previous file with comments | « ui/gl/gl_switches.cc ('k') | ui/ozone/platform/cast/gl_surface_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698