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

Unified Diff: cc/delegated_renderer_layer_impl.h

Issue 11821015: cc: Use the size of the source frame along with the source frame's renderpasses (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « no previous file | cc/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/delegated_renderer_layer_impl.h
diff --git a/cc/delegated_renderer_layer_impl.h b/cc/delegated_renderer_layer_impl.h
index 19e65a6bad95e6a799e93a5f72d46ce17c084f17..dcf1d19533f2bd6c32e40790f151bc919783a62e 100644
--- a/cc/delegated_renderer_layer_impl.h
+++ b/cc/delegated_renderer_layer_impl.h
@@ -20,7 +20,10 @@ public:
virtual bool hasContributingDelegatedRenderPasses() const OVERRIDE;
// This gives ownership of the RenderPasses to the layer.
- void setRenderPasses(ScopedPtrVector<RenderPass>&);
+ // The render passes belong to a frame with bounds |frameSize|, and the
+ // entire frame will be drawn into layer space of this layer, scaled to fill
+ // the bounds of the layer.
+ void setRenderPasses(ScopedPtrVector<RenderPass>&, gfx::Size frameSize);
void clearRenderPasses();
virtual void didLoseOutputSurface() OVERRIDE;
@@ -42,6 +45,8 @@ private:
ScopedPtrVector<RenderPass> m_renderPassesInDrawOrder;
base::hash_map<RenderPass::Id, int> m_renderPassesIndexById;
+ gfx::Size m_frameSize;
enne (OOO) 2013/01/09 02:48:20 Is this redundant with the root render pass's outp
enne (OOO) 2013/01/09 02:48:20 Is this redundant with the root render pass's outp
danakj 2013/01/09 02:55:49 Ya I totally think so. We don't need the size on t
+ gfx::Size m_desiredLayerDisplaySize;
};
}
« no previous file with comments | « no previous file | cc/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698