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

Unified Diff: ui/compositor/compositor.h

Issue 11195011: Send vsync timebase updates to the browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased again. Created 8 years, 1 month 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 | « content/common/gpu/image_transport_surface.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index f3720bce3cd7a3b81c6e9ceb54bfb3c71720eb16..6ab4f9f99f599949a73212ce881ffa925c51450f 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -48,10 +48,10 @@ class COMPOSITOR_EXPORT ContextFactory {
// created on the first call of GetInstance.
static void SetInstance(ContextFactory* instance);
- // Creates a context for given compositor. The factory may keep per-compositor
- // data (e.g. a shared context), that needs to be cleaned up by calling
- // RemoveCompositor when the compositor gets destroyed.
- virtual WebKit::WebGraphicsContext3D* CreateContext(
+ // Creates an output surface for the given compositor. The factory may keep
+ // per-compositor data (e.g. a shared context), that needs to be cleaned up
+ // by calling RemoveCompositor when the compositor gets destroyed.
+ virtual WebKit::WebCompositorOutputSurface* CreateOutputSurface(
Compositor* compositor) = 0;
// Creates a context used for offscreen rendering. This context can be shared
@@ -69,7 +69,7 @@ class COMPOSITOR_EXPORT DefaultContextFactory : public ContextFactory {
virtual ~DefaultContextFactory();
// ContextFactory implementation
- virtual WebKit::WebGraphicsContext3D* CreateContext(
+ virtual WebKit::WebCompositorOutputSurface* CreateOutputSurface(
Compositor* compositor) OVERRIDE;
virtual WebKit::WebGraphicsContext3D* CreateOffscreenContext() OVERRIDE;
virtual void RemoveCompositor(Compositor* compositor) OVERRIDE;
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698