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

Unified Diff: cc/draw_quad.cc

Issue 11412044: cc: Remove opaque flags from SharedQuadState and DrawQuad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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.h ('k') | cc/draw_quad_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/draw_quad.cc
diff --git a/cc/draw_quad.cc b/cc/draw_quad.cc
index aba2412160f9e68a43a5fdcd123c2d7c838aaefa..805561b394affd023f407d0ad01f36ecee58cba3 100644
--- a/cc/draw_quad.cc
+++ b/cc/draw_quad.cc
@@ -25,14 +25,14 @@ template<typename T> T* TypedCopy(const cc::DrawQuad* other) {
namespace cc {
-DrawQuad::DrawQuad(const SharedQuadState* sharedQuadState, Material material, const gfx::Rect& quadRect)
+DrawQuad::DrawQuad(const SharedQuadState* sharedQuadState, Material material, const gfx::Rect& quadRect, const gfx::Rect& opaqueRect)
: m_sharedQuadState(sharedQuadState)
, m_sharedQuadStateId(sharedQuadState->id)
, m_material(material)
, m_quadRect(quadRect)
, m_quadVisibleRect(quadRect)
- , m_quadOpaque(true)
, m_needsBlending(false)
+ , m_opaqueRect(opaqueRect)
{
DCHECK(m_sharedQuadState);
DCHECK(m_material != INVALID);
@@ -42,8 +42,6 @@ gfx::Rect DrawQuad::opaqueRect() const
{
if (opacity() != 1)
return gfx::Rect();
- if (m_sharedQuadState->opaque && m_quadOpaque)
- return m_quadRect;
return m_opaqueRect;
}
« no previous file with comments | « cc/draw_quad.h ('k') | cc/draw_quad_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698