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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ozone demo 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/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 9ee5ef692eba5ebb73ebf3cee3f56c031157331b..f5ec1e5e42ebd45c37ad32764eaacc1e6bc91fed 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -60,6 +60,7 @@
#include "third_party/skia/include/core/SkMallocPixelRef.h"
#include "ui/android/window_android.h"
#include "ui/gfx/android/device_display_info.h"
+#include "ui/gfx/swap_result.h"
namespace content {
@@ -118,13 +119,14 @@ class OutputSurfaceWithoutParent : public cc::OutputSurface {
return command_buffer_proxy;
}
- void OnSwapBuffersCompleted(
- const std::vector<ui::LatencyInfo>& latency_info) {
+ void OnSwapBuffersCompleted(const std::vector<ui::LatencyInfo>& latency_info,
+ gfx::SwapResult result) {
RenderWidgetHostImpl::CompositorFrameDrawn(latency_info);
OutputSurface::OnSwapBuffersComplete();
}
- base::CancelableCallback<void(const std::vector<ui::LatencyInfo>&)>
+ base::CancelableCallback<void(const std::vector<ui::LatencyInfo>&,
+ gfx::SwapResult)>
swap_buffers_completion_callback_;
scoped_refptr<base::MessageLoopProxy> main_thread_;

Powered by Google App Engine
This is Rietveld 408576698