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

Unified Diff: cc/layer_impl.cc

Issue 11416088: cc: Turn SharedQuadState into a struct-like class similar to DrawQuads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix debug build 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 | « cc/draw_quad_unittest.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_impl.cc
diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc
index 4927e7484d5040e6064261f47d6d179104a7c6c5..17700b749fe73289f29f45781c277abdf2b58abb 100644
--- a/cc/layer_impl.cc
+++ b/cc/layer_impl.cc
@@ -124,7 +124,9 @@ bool LayerImpl::descendantDrawsContent()
scoped_ptr<SharedQuadState> LayerImpl::createSharedQuadState() const
{
- return SharedQuadState::create(m_drawTransform, m_visibleContentRect, m_drawableContentRect, m_drawOpacity);
+ scoped_ptr<SharedQuadState> state = SharedQuadState::Create();
+ state->SetAll(m_drawTransform, m_visibleContentRect, m_drawableContentRect, m_drawOpacity);
+ return state.Pass();
}
void LayerImpl::willDraw(ResourceProvider*)
« no previous file with comments | « cc/draw_quad_unittest.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698