summaryrefslogtreecommitdiffstats
path: root/cc/layer_tree_host.h
diff options
context:
space:
mode:
authoraelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-08 07:03:44 +0000
committeraelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-08 07:03:44 +0000
commit61de581375ce3d76628772a78719cad63f0aabae (patch)
tree90e5818095cfa31182ceca09224c42d999644e4d /cc/layer_tree_host.h
parentde8686ed05a28324b0978b2bb81cf3407f13762b (diff)
downloadchromium_src-61de581375ce3d76628772a78719cad63f0aabae.zip
chromium_src-61de581375ce3d76628772a78719cad63f0aabae.tar.gz
chromium_src-61de581375ce3d76628772a78719cad63f0aabae.tar.bz2
Remove static thread pointers from CC, attempt 3
BUG=152904 Review URL: https://chromiumcodereview.appspot.com/11232051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host.h')
-rw-r--r--cc/layer_tree_host.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h
index c574888..b81c7ca 100644
--- a/cc/layer_tree_host.h
+++ b/cc/layer_tree_host.h
@@ -74,7 +74,7 @@ struct CC_EXPORT LayerTreeSettings {
};
// Provides information on an Impl's rendering capabilities back to the LayerTreeHost
-struct RendererCapabilities {
+struct CC_EXPORT RendererCapabilities {
RendererCapabilities();
~RendererCapabilities();
@@ -92,7 +92,7 @@ struct RendererCapabilities {
class CC_EXPORT LayerTreeHost : public RateLimiterClient {
public:
- static scoped_ptr<LayerTreeHost> create(LayerTreeHostClient*, const LayerTreeSettings&);
+ static scoped_ptr<LayerTreeHost> create(LayerTreeHostClient*, const LayerTreeSettings&, scoped_ptr<Thread> implThread);
virtual ~LayerTreeHost();
void setSurfaceReady();
@@ -133,8 +133,9 @@ public:
LayerTreeHostClient* client() { return m_client; }
- // Only used when compositing on the main thread.
void composite();
+
+ // Only used when compositing on the main thread.
void scheduleComposite();
// Composites and attempts to read back the result into the provided
@@ -212,9 +213,11 @@ public:
HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); }
+ Proxy* proxy() const { return m_proxy.get(); }
+
protected:
LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&);
- bool initialize();
+ bool initialize(scoped_ptr<Thread> implThread);
private:
typedef std::vector<scoped_refptr<Layer> > LayerList;
@@ -245,11 +248,11 @@ private:
base::CancelableClosure m_prepaintCallback;
LayerTreeHostClient* m_client;
+ scoped_ptr<Proxy> m_proxy;
int m_commitNumber;
RenderingStats m_renderingStats;
- scoped_ptr<Proxy> m_proxy;
bool m_rendererInitialized;
bool m_contextLost;
int m_numTimesRecreateShouldFail;