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

Unified Diff: ui/gfx/compositor/compositor_cc.cc

Issue 9014030: Plumbs ::didCompleteSwapBuffers in CompositorCC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer diff Created 8 years, 11 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
« no previous file with comments | « ui/gfx/compositor/compositor_cc.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor_cc.cc
diff --git a/ui/gfx/compositor/compositor_cc.cc b/ui/gfx/compositor/compositor_cc.cc
index 3090bc471472e03d342a730a3aa9210415fb299b..c0a4fd7900444085b05a9f2a153b5bef0c92772b 100644
--- a/ui/gfx/compositor/compositor_cc.cc
+++ b/ui/gfx/compositor/compositor_cc.cc
@@ -218,6 +218,10 @@ void CompositorCC::DrawTree() {
host_.composite();
}
+bool CompositorCC::CompositesAsynchronously() {
+ return g_compositor_thread;
+}
+
bool CompositorCC::ReadPixels(SkBitmap* bitmap, const gfx::Rect& bounds) {
if (bounds.right() > size().width() || bounds.bottom() > size().height())
return false;
@@ -273,6 +277,10 @@ WebKit::WebGraphicsContext3D* CompositorCC::createContext3D() {
return context;
}
+void CompositorCC::didCompleteSwapBuffers() {
+ NotifyEnd();
piman 2012/01/06 17:22:54 nit: indent
+}
+
void CompositorCC::didRebindGraphicsContext(bool success) {
}
« no previous file with comments | « ui/gfx/compositor/compositor_cc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698