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

Unified Diff: content/common/gpu/image_transport_surface_fbo_mac.mm

Issue 1166463004: Revert of Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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_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 102a6b306f898e90f99aade538b73ce88b854227..f1aa838a778393c4bd5e4150e97b55663520b898 100644
--- a/content/common/gpu/image_transport_surface_fbo_mac.mm
+++ b/content/common/gpu/image_transport_surface_fbo_mac.mm
@@ -169,10 +169,9 @@
}
}
-gfx::SwapResult ImageTransportSurfaceFBO::SwapBuffers() {
+bool ImageTransportSurfaceFBO::SwapBuffers() {
TRACE_EVENT0("gpu", "ImageTransportSurfaceFBO::SwapBuffers");
- return SwapBuffersInternal() ? gfx::SwapResult::SWAP_ACK
- : gfx::SwapResult::SWAP_FAILED;
+ return SwapBuffersInternal();
}
bool ImageTransportSurfaceFBO::SwapBuffersInternal() {
@@ -209,13 +208,10 @@
context_->share_group()->SetRendererID(renderer_id);
}
-gfx::SwapResult ImageTransportSurfaceFBO::PostSubBuffer(int x,
- int y,
- int width,
- int height) {
+bool ImageTransportSurfaceFBO::PostSubBuffer(
+ int x, int y, int width, int height) {
TRACE_EVENT0("gpu", "ImageTransportSurfaceFBO::PostSubBuffer");
- return SwapBuffersInternal() ? gfx::SwapResult::SWAP_ACK
- : gfx::SwapResult::SWAP_FAILED;
+ return SwapBuffersInternal();
}
bool ImageTransportSurfaceFBO::SupportsPostSubBuffer() {
« no previous file with comments | « content/common/gpu/image_transport_surface_fbo_mac.h ('k') | content/common/gpu/image_transport_surface_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698