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

Side by Side Diff: cc/CCDirectRenderer.cpp

Issue 10989026: cc: Remove the WTF::Vector dependency from CCRenderPass. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/CCLayerTreeHostImpl.cpp » ('j') | cc/CCLayerTreeHostImpl.cpp » ('J')
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 #include "CCDirectRenderer.h" 7 #include "CCDirectRenderer.h"
8 8
9 #include "CCMathUtil.h" 9 #include "CCMathUtil.h"
10 #include <public/WebTransformationMatrix.h> 10 #include <public/WebTransformationMatrix.h>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 for (size_t i = 0; i < renderPassesInDrawOrder.size(); ++i) { 145 for (size_t i = 0; i < renderPassesInDrawOrder.size(); ++i) {
146 if (!m_renderPassTextures.contains(renderPassesInDrawOrder[i]->id())) { 146 if (!m_renderPassTextures.contains(renderPassesInDrawOrder[i]->id())) {
147 scoped_ptr<CachedTexture> texture = CachedTexture::create(m_resourcePr ovider); 147 scoped_ptr<CachedTexture> texture = CachedTexture::create(m_resourcePr ovider);
148 m_renderPassTextures.set(renderPassesInDrawOrder[i]->id(), texture.P ass()); 148 m_renderPassTextures.set(renderPassesInDrawOrder[i]->id(), texture.P ass());
149 } 149 }
150 } 150 }
151 } 151 }
152 152
153 void CCDirectRenderer::drawFrame(const CCRenderPassList& renderPassesInDrawOrder , const CCRenderPassIdHashMap& renderPassesById) 153 void CCDirectRenderer::drawFrame(const CCRenderPassList& renderPassesInDrawOrder , const CCRenderPassIdHashMap& renderPassesById)
154 { 154 {
155 const CCRenderPass* rootRenderPass = renderPassesInDrawOrder.last(); 155 const CCRenderPass* rootRenderPass = renderPassesInDrawOrder.back();
156 ASSERT(rootRenderPass); 156 ASSERT(rootRenderPass);
157 157
158 DrawingFrame frame; 158 DrawingFrame frame;
159 frame.renderPassesById = &renderPassesById; 159 frame.renderPassesById = &renderPassesById;
160 frame.rootRenderPass = rootRenderPass; 160 frame.rootRenderPass = rootRenderPass;
161 frame.rootDamageRect = capabilities().usingPartialSwap ? rootRenderPass->dam ageRect() : rootRenderPass->outputRect(); 161 frame.rootDamageRect = capabilities().usingPartialSwap ? rootRenderPass->dam ageRect() : rootRenderPass->outputRect();
162 frame.rootDamageRect.intersect(IntRect(IntPoint::zero(), viewportSize())); 162 frame.rootDamageRect.intersect(IntRect(IntPoint::zero(), viewportSize()));
163 163
164 beginDrawingFrame(frame); 164 beginDrawingFrame(frame);
165 for (size_t i = 0; i < renderPassesInDrawOrder.size(); ++i) 165 for (size_t i = 0; i < renderPassesInDrawOrder.size(); ++i)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 return pass->outputRect().size(); 228 return pass->outputRect().size();
229 } 229 }
230 230
231 // static 231 // static
232 GC3Denum CCDirectRenderer::renderPassTextureFormat(const CCRenderPass*) 232 GC3Denum CCDirectRenderer::renderPassTextureFormat(const CCRenderPass*)
233 { 233 {
234 return GraphicsContext3D::RGBA; 234 return GraphicsContext3D::RGBA;
235 } 235 }
236 236
237 } 237 }
OLDNEW
« no previous file with comments | « no previous file | cc/CCLayerTreeHostImpl.cpp » ('j') | cc/CCLayerTreeHostImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698