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

Side by Side Diff: cc/CCRenderPass.cpp

Issue 10989024: cc: Remove OwnPtr usage from CCRenderPass and CCDrawQuad class hierarchy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/CCRenderPass.h ('k') | cc/CCRenderPassDrawQuad.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #include "CCRenderPass.h" 7 #include "CCRenderPass.h"
8 8
9 #include "CCLayerImpl.h" 9 #include "CCLayerImpl.h"
10 #include "CCMathUtil.h" 10 #include "CCMathUtil.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 float opacity = 1; 92 float opacity = 1;
93 bool opaque = true; 93 bool opaque = true;
94 CCSharedQuadState* sharedQuadState = quadCuller.useSharedQuadState(CCSharedQ uadState::create(rootLayer->drawTransform(), rootTargetRect, rootTargetRect, opa city, opaque)); 94 CCSharedQuadState* sharedQuadState = quadCuller.useSharedQuadState(CCSharedQ uadState::create(rootLayer->drawTransform(), rootTargetRect, rootTargetRect, opa city, opaque));
95 ASSERT(rootLayer->screenSpaceTransform().isInvertible()); 95 ASSERT(rootLayer->screenSpaceTransform().isInvertible());
96 WebTransformationMatrix transformToLayerSpace = rootLayer->screenSpaceTransf orm().inverse(); 96 WebTransformationMatrix transformToLayerSpace = rootLayer->screenSpaceTransf orm().inverse();
97 Vector<WebCore::IntRect> fillRects = fillRegion.rects(); 97 Vector<WebCore::IntRect> fillRects = fillRegion.rects();
98 for (size_t i = 0; i < fillRects.size(); ++i) { 98 for (size_t i = 0; i < fillRects.size(); ++i) {
99 // The root layer transform is composed of translations and scales only, no perspective, so mapping is sufficient. 99 // The root layer transform is composed of translations and scales only, no perspective, so mapping is sufficient.
100 IntRect layerRect = CCMathUtil::mapClippedRect(transformToLayerSpace, cc ::IntRect(fillRects[i])); 100 IntRect layerRect = CCMathUtil::mapClippedRect(transformToLayerSpace, cc ::IntRect(fillRects[i]));
101 // Skip the quad culler and just append the quads directly to avoid occl usion checks. 101 // Skip the quad culler and just append the quads directly to avoid occl usion checks.
102 m_quadList.append(CCSolidColorDrawQuad::create(sharedQuadState, layerRec t, screenBackgroundColor)); 102 m_quadList.append(CCSolidColorDrawQuad::create(sharedQuadState, layerRec t, screenBackgroundColor).PassAs<CCDrawQuad>());
103 } 103 }
104 } 104 }
105 105
106 } 106 }
OLDNEW
« no previous file with comments | « cc/CCRenderPass.h ('k') | cc/CCRenderPassDrawQuad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698