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

Side by Side Diff: cc/CCQuadCuller.cpp

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #if USE(ACCELERATED_COMPOSITING) 7 #if USE(ACCELERATED_COMPOSITING)
8 8
9 #include "CCQuadCuller.h" 9 #include "CCQuadCuller.h"
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 // Pass the quad after we're done using it. 67 // Pass the quad after we're done using it.
68 quadList.append(drawQuad.Pass()); 68 quadList.append(drawQuad.Pass());
69 } 69 }
70 return keepQuad; 70 return keepQuad;
71 } 71 }
72 72
73 bool CCQuadCuller::append(scoped_ptr<CCDrawQuad> drawQuad, CCAppendQuadsData& ap pendQuadsData) 73 bool CCQuadCuller::append(scoped_ptr<CCDrawQuad> drawQuad, CCAppendQuadsData& ap pendQuadsData)
74 { 74 {
75 ASSERT(drawQuad->sharedQuadState() == m_currentSharedQuadState); 75 DCHECK(drawQuad->sharedQuadState() == m_currentSharedQuadState);
76 ASSERT(drawQuad->sharedQuadStateId() == m_currentSharedQuadState->id); 76 DCHECK(drawQuad->sharedQuadStateId() == m_currentSharedQuadState->id);
77 ASSERT(!m_sharedQuadStateList.isEmpty()); 77 DCHECK(!m_sharedQuadStateList.isEmpty());
78 ASSERT(m_sharedQuadStateList.last() == m_currentSharedQuadState); 78 DCHECK(m_sharedQuadStateList.last() == m_currentSharedQuadState);
79 79
80 IntRect culledRect; 80 IntRect culledRect;
81 bool hasOcclusionFromOutsideTargetSurface; 81 bool hasOcclusionFromOutsideTargetSurface;
82 82
83 if (m_forSurface) 83 if (m_forSurface)
84 culledRect = m_occlusionTracker->unoccludedContributingSurfaceContentRec t(m_layer, false, drawQuad->quadRect(), &hasOcclusionFromOutsideTargetSurface); 84 culledRect = m_occlusionTracker->unoccludedContributingSurfaceContentRec t(m_layer, false, drawQuad->quadRect(), &hasOcclusionFromOutsideTargetSurface);
85 else 85 else
86 culledRect = m_occlusionTracker->unoccludedContentRect(m_layer, drawQuad ->quadRect(), &hasOcclusionFromOutsideTargetSurface); 86 culledRect = m_occlusionTracker->unoccludedContentRect(m_layer, drawQuad ->quadRect(), &hasOcclusionFromOutsideTargetSurface);
87 87
88 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts ideTargetSurface; 88 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts ideTargetSurface;
89 89
90 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, *m_occlus ionTracker, m_showCullingWithDebugBorderQuads); 90 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, *m_occlus ionTracker, m_showCullingWithDebugBorderQuads);
91 } 91 }
92 92
93 } // namespace cc 93 } // namespace cc
94 #endif // USE(ACCELERATED_COMPOSITING) 94 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« cc/CCCompletionEvent.h ('K') | « cc/CCProxy.cpp ('k') | cc/CCRenderPass.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698