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

Side by Side Diff: cc/CCQuadCuller.cpp

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang 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 | Annotate | Revision Log
« no previous file with comments | « cc/CCPrioritizedTextureManager.cpp ('k') | cc/CCRenderPass.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 ASSERT(drawQuad->sharedQuadStateId() == m_currentSharedQuadState->id); 76 ASSERT(drawQuad->sharedQuadStateId() == m_currentSharedQuadState->id);
77 ASSERT(!m_sharedQuadStateList.isEmpty()); 77 ASSERT(!m_sharedQuadStateList.isEmpty());
78 ASSERT(m_sharedQuadStateList.last() == m_currentSharedQuadState); 78 ASSERT(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->renderTa rget(), drawQuad->quadRect(), drawQuad->quadTransform(), true, drawQuad->clipped RectInTarget(), &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
« no previous file with comments | « cc/CCPrioritizedTextureManager.cpp ('k') | cc/CCRenderPass.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698