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

Unified Diff: ui/gl/gl_surface.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 | « gpu/ipc/service/pass_through_image_transport_surface.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 ce01dbc9e4aa77d0460a19e2266e0b3777e7ac8a..6c2e0f104a011eb067bf0e258327216f74c4f92b 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -80,8 +80,8 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// Get the underlying platform specific surface "handle".
virtual void* GetHandle() = 0;
- // Returns whether or not the surface supports SwapBuffersWithDamage
- virtual bool SupportsSwapBuffersWithDamage();
+ // Returns whether or not the surface supports SwapBuffersWithBounds
+ virtual bool SupportsSwapBuffersWithBounds();
// Returns whether or not the surface supports PostSubBuffer.
virtual bool SupportsPostSubBuffer();
@@ -104,11 +104,9 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// the calling thread (i.e. same thread SwapBuffersAsync is called)
virtual void SwapBuffersAsync(const SwapCompletionCallback& callback);
- // Swap buffers with damage rect.
- virtual gfx::SwapResult SwapBuffersWithDamage(int x,
- int y,
- int width,
- int height);
+ // Swap buffers with content bounds.
+ virtual gfx::SwapResult SwapBuffersWithBounds(
+ const std::vector<gfx::Rect>& rects);
// Copy part of the backbuffer to the frontbuffer.
virtual gfx::SwapResult PostSubBuffer(int x, int y, int width, int height);
@@ -240,10 +238,8 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
bool IsOffscreen() override;
gfx::SwapResult SwapBuffers() override;
void SwapBuffersAsync(const SwapCompletionCallback& callback) override;
- gfx::SwapResult SwapBuffersWithDamage(int x,
- int y,
- int width,
- int height) override;
+ gfx::SwapResult SwapBuffersWithBounds(
+ const std::vector<gfx::Rect>& rects) override;
gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override;
void PostSubBufferAsync(int x,
int y,
@@ -253,7 +249,7 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
gfx::SwapResult CommitOverlayPlanes() override;
void CommitOverlayPlanesAsync(
const SwapCompletionCallback& callback) override;
- bool SupportsSwapBuffersWithDamage() override;
+ bool SupportsSwapBuffersWithBounds() override;
bool SupportsPostSubBuffer() override;
bool SupportsCommitOverlayPlanes() override;
bool SupportsAsyncSwap() override;
« no previous file with comments | « gpu/ipc/service/pass_through_image_transport_surface.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698