| Index: ui/gl/gl_surface.cc
|
| diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
|
| index c3696f7896126388ede40c3077b226345ab5c875..a457ea32a579a1fee52786d2010bc49be72800fe 100644
|
| --- a/ui/gl/gl_surface.cc
|
| +++ b/ui/gl/gl_surface.cc
|
| @@ -51,6 +51,10 @@ bool GLSurface::DeferDraws() {
|
| return false;
|
| }
|
|
|
| +bool GLSurface::SupportsSwapBuffersWithDamage() {
|
| + return false;
|
| +}
|
| +
|
| bool GLSurface::SupportsPostSubBuffer() {
|
| return false;
|
| }
|
| @@ -71,6 +75,13 @@ void GLSurface::SwapBuffersAsync(const SwapCompletionCallback& callback) {
|
| NOTREACHED();
|
| }
|
|
|
| +gfx::SwapResult GLSurface::SwapBuffersWithDamage(int x,
|
| + int y,
|
| + int width,
|
| + int height) {
|
| + return gfx::SwapResult::SWAP_FAILED;
|
| +}
|
| +
|
| gfx::SwapResult GLSurface::PostSubBuffer(int x, int y, int width, int height) {
|
| return gfx::SwapResult::SWAP_FAILED;
|
| }
|
| @@ -225,6 +236,13 @@ void GLSurfaceAdapter::SwapBuffersAsync(
|
| surface_->SwapBuffersAsync(callback);
|
| }
|
|
|
| +gfx::SwapResult GLSurfaceAdapter::SwapBuffersWithDamage(int x,
|
| + int y,
|
| + int width,
|
| + int height) {
|
| + return surface_->SwapBuffersWithDamage(x, y, width, height);
|
| +}
|
| +
|
| gfx::SwapResult GLSurfaceAdapter::PostSubBuffer(int x,
|
| int y,
|
| int width,
|
| @@ -250,6 +268,10 @@ void GLSurfaceAdapter::CommitOverlayPlanesAsync(
|
| surface_->CommitOverlayPlanesAsync(callback);
|
| }
|
|
|
| +bool GLSurfaceAdapter::SupportsSwapBuffersWithDamage() {
|
| + return surface_->SupportsSwapBuffersWithDamage();
|
| +}
|
| +
|
| bool GLSurfaceAdapter::SupportsPostSubBuffer() {
|
| return surface_->SupportsPostSubBuffer();
|
| }
|
|
|