| Index: content/common/gpu/image_transport_surface_fbo_mac.mm
|
| diff --git a/content/common/gpu/image_transport_surface_fbo_mac.mm b/content/common/gpu/image_transport_surface_fbo_mac.mm
|
| index f1aa838a778393c4bd5e4150e97b55663520b898..102a6b306f898e90f99aade538b73ce88b854227 100644
|
| --- a/content/common/gpu/image_transport_surface_fbo_mac.mm
|
| +++ b/content/common/gpu/image_transport_surface_fbo_mac.mm
|
| @@ -169,9 +169,10 @@ void ImageTransportSurfaceFBO::AdjustBufferAllocation() {
|
| }
|
| }
|
|
|
| -bool ImageTransportSurfaceFBO::SwapBuffers() {
|
| +gfx::SwapResult ImageTransportSurfaceFBO::SwapBuffers() {
|
| TRACE_EVENT0("gpu", "ImageTransportSurfaceFBO::SwapBuffers");
|
| - return SwapBuffersInternal();
|
| + return SwapBuffersInternal() ? gfx::SwapResult::SWAP_ACK
|
| + : gfx::SwapResult::SWAP_FAILED;
|
| }
|
|
|
| bool ImageTransportSurfaceFBO::SwapBuffersInternal() {
|
| @@ -208,10 +209,13 @@ void ImageTransportSurfaceFBO::SetRendererID(int renderer_id) {
|
| context_->share_group()->SetRendererID(renderer_id);
|
| }
|
|
|
| -bool ImageTransportSurfaceFBO::PostSubBuffer(
|
| - int x, int y, int width, int height) {
|
| +gfx::SwapResult ImageTransportSurfaceFBO::PostSubBuffer(int x,
|
| + int y,
|
| + int width,
|
| + int height) {
|
| TRACE_EVENT0("gpu", "ImageTransportSurfaceFBO::PostSubBuffer");
|
| - return SwapBuffersInternal();
|
| + return SwapBuffersInternal() ? gfx::SwapResult::SWAP_ACK
|
| + : gfx::SwapResult::SWAP_FAILED;
|
| }
|
|
|
| bool ImageTransportSurfaceFBO::SupportsPostSubBuffer() {
|
|
|