diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 14:11:27 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 14:11:27 +0000 |
commit | 9cd20a3f28bdea5e6cb6908b49c0dae80ef9cd30 (patch) | |
tree | 55d75046d64113e05aad6c6d10ff6383adbabc88 /cc/render_pass_draw_quad.cc | |
parent | 1757b6456de4001bd4bf46ad98cba9420941b5ff (diff) | |
download | chromium_src-9cd20a3f28bdea5e6cb6908b49c0dae80ef9cd30.zip chromium_src-9cd20a3f28bdea5e6cb6908b49c0dae80ef9cd30.tar.gz chromium_src-9cd20a3f28bdea5e6cb6908b49c0dae80ef9cd30.tar.bz2 |
cc: Convert DrawQuad to chromium style.
We leave the methods as methods instead of structifying it in this CL. But the
opaqueRect() helper method on DrawQuad is moved out to the call sites.
DrawQuad::needsBlending() is moved to DrawQuad::ShouldDrawWithBlending()
which combines together various states.
DrawQuad::opaqueRect() is computed in QuadCuller, and is used more cleverly
in ShouldDrawWithBlending().
TBR=aelias
BUG=152337
Review URL: https://chromiumcodereview.appspot.com/11420044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/render_pass_draw_quad.cc')
-rw-r--r-- | cc/render_pass_draw_quad.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/render_pass_draw_quad.cc b/cc/render_pass_draw_quad.cc index ddd4dc6..c70b3b4 100644 --- a/cc/render_pass_draw_quad.cc +++ b/cc/render_pass_draw_quad.cc @@ -35,7 +35,7 @@ const RenderPassDrawQuad* RenderPassDrawQuad::materialCast(const DrawQuad* quad) scoped_ptr<RenderPassDrawQuad> RenderPassDrawQuad::copy(const SharedQuadState* copiedSharedQuadState, RenderPass::Id copiedRenderPassId) const { scoped_ptr<RenderPassDrawQuad> copyQuad(new RenderPassDrawQuad(*materialCast(this))); - copyQuad->setSharedQuadState(copiedSharedQuadState); + copyQuad->set_shared_quad_state(copiedSharedQuadState); copyQuad->m_renderPassId = copiedRenderPassId; return copyQuad.Pass(); } |