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

Side by Side Diff: cc/direct_renderer.cc

Issue 11232051: Remove static thread pointers from CC (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 #include "CCDirectRenderer.h" 7 #include "CCDirectRenderer.h"
8 8
9 #include "cc/math_util.h" 9 #include "cc/math_util.h"
10 #include "ui/gfx/rect_conversions.h" 10 #include "ui/gfx/rect_conversions.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 if (frame.flippedY && !frame.currentTexture) 100 if (frame.flippedY && !frame.currentTexture)
101 scissorRectInCanvasSpace.set_y(framebufferOutputRect.height() - (scissor RectInCanvasSpace.bottom() - framebufferOutputRect.y())); 101 scissorRectInCanvasSpace.set_y(framebufferOutputRect.height() - (scissor RectInCanvasSpace.bottom() - framebufferOutputRect.y()));
102 else 102 else
103 scissorRectInCanvasSpace.set_y(scissorRectInCanvasSpace.y() - framebuffe rOutputRect.y()); 103 scissorRectInCanvasSpace.set_y(scissorRectInCanvasSpace.y() - framebuffe rOutputRect.y());
104 return scissorRectInCanvasSpace; 104 return scissorRectInCanvasSpace;
105 } 105 }
106 106
107 CCDirectRenderer::CCDirectRenderer(CCRendererClient* client, CCResourceProvider* resourceProvider) 107 CCDirectRenderer::CCDirectRenderer(CCRendererClient* client, CCResourceProvider* resourceProvider)
108 : CCRenderer(client) 108 : CCRenderer(client)
109 , m_resourceProvider(resourceProvider) 109 , m_resourceProvider(resourceProvider)
110 , m_proxy(resourceProvider->proxy())
110 { 111 {
111 } 112 }
112 113
113 CCDirectRenderer::~CCDirectRenderer() 114 CCDirectRenderer::~CCDirectRenderer()
114 { 115 {
115 } 116 }
116 117
117 void CCDirectRenderer::decideRenderPassAllocationsForFrame(const CCRenderPassLis t& renderPassesInDrawOrder) 118 void CCDirectRenderer::decideRenderPassAllocationsForFrame(const CCRenderPassLis t& renderPassesInDrawOrder)
118 { 119 {
119 base::hash_map<CCRenderPass::Id, const CCRenderPass*> renderPassesInFrame; 120 base::hash_map<CCRenderPass::Id, const CCRenderPass*> renderPassesInFrame;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 return cc::IntSize(pass->outputRect().size()); 230 return cc::IntSize(pass->outputRect().size());
230 } 231 }
231 232
232 // static 233 // static
233 GLenum CCDirectRenderer::renderPassTextureFormat(const CCRenderPass*) 234 GLenum CCDirectRenderer::renderPassTextureFormat(const CCRenderPass*)
234 { 235 {
235 return GL_RGBA; 236 return GL_RGBA;
236 } 237 }
237 238
238 } 239 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698