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

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

Issue 16304003: Unified OutputSurface::SwapBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 205473 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 ec1ae64dbfb374c6762d539aa680c84c76a0bc63..c80d73b9bcf663e541fda93c4ed3ae39773eaee9 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -48,9 +48,10 @@ class DirectOutputSurface : public cc::OutputSurface {
DirectOutputSurface(scoped_ptr<WebKit::WebGraphicsContext3D> context3d)
: cc::OutputSurface(context3d.Pass()) {}
- virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE {}
- virtual void PostSubBuffer(gfx::Rect rect, const ui::LatencyInfo&) OVERRIDE {}
- virtual void SwapBuffers(const ui::LatencyInfo&) OVERRIDE {
+ virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE {
+ surface_size_ = size;
+ }
+ virtual void SwapBuffers(cc::CompositorFrame*) OVERRIDE {
context3d()->shallowFlushCHROMIUM();
}
};

Powered by Google App Engine
This is Rietveld 408576698