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

Unified Diff: cc/surfaces/surface.cc

Issue 302903003: Add very simple cc::Display implementation for surfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: cc/surfaces/surface.cc
diff --git a/cc/surfaces/surface.cc b/cc/surfaces/surface.cc
index 82a13222f261376c45378c859f3f3c2a879fa57a..c9921efbd6ae1736246d48135a71adc5917224ba 100644
--- a/cc/surfaces/surface.cc
+++ b/cc/surfaces/surface.cc
@@ -27,5 +27,8 @@ void Surface::QueueFrame(scoped_ptr<CompositorFrame> frame) {
}
CompositorFrame* Surface::GetEligibleFrame() { return current_frame_.get(); }
+scoped_ptr<CompositorFrame> Surface::TakeFrame() {
+ return current_frame_.Pass();
+}
} // namespace cc
« cc/surfaces/surface.h ('K') | « cc/surfaces/surface.h ('k') | cc/surfaces/surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698