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

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

Issue 17391006: cc: Add BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 6 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 c5560e61684d5a47b23ab6b2013888845634e40d..f3c460618e65928141307d20ae60d2f84ecad109 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -46,7 +46,9 @@ namespace {
class DirectOutputSurface : public cc::OutputSurface {
public:
DirectOutputSurface(scoped_ptr<WebKit::WebGraphicsContext3D> context3d)
- : cc::OutputSurface(context3d.Pass()) {}
+ : cc::OutputSurface(context3d.Pass()) {
+ capabilities_.adjust_deadline_for_parent = false;
+ }
virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE {
surface_size_ = size;
@@ -56,6 +58,15 @@ class DirectOutputSurface : public cc::OutputSurface {
}
};
+// Used to override capabilities_.adjust_deadline_for_parent to false
+class OutputSurfaceWithoutParent : public cc::OutputSurface {
+ public:
+ OutputSurfaceWithoutParent(scoped_ptr<WebKit::WebGraphicsContext3D> context3d)
+ : cc::OutputSurface(context3d.Pass()) {
+ capabilities_.adjust_deadline_for_parent = false;
+ }
+};
+
static bool g_initialized = false;
static base::Thread* g_impl_thread = NULL;
static bool g_use_direct_gl = false;
@@ -365,8 +376,9 @@ scoped_ptr<cc::OutputSurface> CompositorImpl::CreateOutputSurface() {
LOG(ERROR) << "Failed to create 3D context for compositor.";
return scoped_ptr<cc::OutputSurface>();
}
- return make_scoped_ptr(new cc::OutputSurface(
- context.PassAs<WebKit::WebGraphicsContext3D>()));
+ return scoped_ptr<cc::OutputSurface>(
+ new OutputSurfaceWithoutParent(
+ context.PassAs<WebKit::WebGraphicsContext3D>()));
}
}

Powered by Google App Engine
This is Rietveld 408576698