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

Unified Diff: cc/layer_tree_host_client.h

Issue 12212007: cc: Route offscreen context creation for compositor to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 years, 10 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/layer_tree_host_client.h
diff --git a/cc/layer_tree_host_client.h b/cc/layer_tree_host_client.h
index 25d93aef468f9166277809bcead82eaa383b4daa..f2b9a144ffa316d73426f76f22de46dddd2c5620 100644
--- a/cc/layer_tree_host_client.h
+++ b/cc/layer_tree_host_client.h
@@ -5,6 +5,7 @@
#ifndef CC_LAYER_TREE_HOST_CLIENT_H_
#define CC_LAYER_TREE_HOST_CLIENT_H_
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
namespace gfx {
@@ -12,6 +13,7 @@ class Vector2d;
}
namespace cc {
+class ContextProvider;
class InputHandler;
class OutputSurface;
@@ -34,6 +36,13 @@ public:
// Used only in the single-threaded path.
virtual void scheduleComposite() = 0;
+ // These must always return a valid ContextProvider. But the provider does not need to be capable of creating contexts.
+ virtual scoped_refptr<cc::ContextProvider> OffscreenContextProviderForMainThread() = 0;
+ virtual scoped_refptr<cc::ContextProvider> OffscreenContextProviderForCompositorThread() = 0;
+
+ // This hook is for testing.
+ virtual void willRetryRecreateOutputSurface() {}
+
protected:
virtual ~LayerTreeHostClient() { }
};

Powered by Google App Engine
This is Rietveld 408576698