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

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 11175009: Implement SkImageFilter support in the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to ToT Created 8 years, 1 month 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
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 "cc/layer_tree_host_impl.h" 7 #include "cc/layer_tree_host_impl.h"
8 8
9 #include "CCAppendQuadsData.h" 9 #include "CCAppendQuadsData.h"
10 #include "CCDamageTracker.h" 10 #include "CCDamageTracker.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 void CCLayerTreeHostImpl::trackDamageForAllSurfaces(CCLayerImpl* rootDrawLayer, const CCLayerList& renderSurfaceLayerList) 328 void CCLayerTreeHostImpl::trackDamageForAllSurfaces(CCLayerImpl* rootDrawLayer, const CCLayerList& renderSurfaceLayerList)
329 { 329 {
330 // For now, we use damage tracking to compute a global scissor. To do this, we must 330 // For now, we use damage tracking to compute a global scissor. To do this, we must
331 // compute all damage tracking before drawing anything, so that we know the root 331 // compute all damage tracking before drawing anything, so that we know the root
332 // damage rect. The root damage rect is then used to scissor each surface. 332 // damage rect. The root damage rect is then used to scissor each surface.
333 333
334 for (int surfaceIndex = renderSurfaceLayerList.size() - 1; surfaceIndex >= 0 ; --surfaceIndex) { 334 for (int surfaceIndex = renderSurfaceLayerList.size() - 1; surfaceIndex >= 0 ; --surfaceIndex) {
335 CCLayerImpl* renderSurfaceLayer = renderSurfaceLayerList[surfaceIndex]; 335 CCLayerImpl* renderSurfaceLayer = renderSurfaceLayerList[surfaceIndex];
336 CCRenderSurface* renderSurface = renderSurfaceLayer->renderSurface(); 336 CCRenderSurface* renderSurface = renderSurfaceLayer->renderSurface();
337 DCHECK(renderSurface); 337 DCHECK(renderSurface);
338 renderSurface->damageTracker()->updateDamageTrackingState(renderSurface- >layerList(), renderSurfaceLayer->id(), renderSurface->surfacePropertyChangedOnl yFromDescendant(), renderSurface->contentRect(), renderSurfaceLayer->maskLayer() , renderSurfaceLayer->filters()); 338 renderSurface->damageTracker()->updateDamageTrackingState(renderSurface- >layerList(), renderSurfaceLayer->id(), renderSurface->surfacePropertyChangedOnl yFromDescendant(), renderSurface->contentRect(), renderSurfaceLayer->maskLayer() , renderSurfaceLayer->filters(), renderSurfaceLayer->filter());
339 } 339 }
340 } 340 }
341 341
342 void CCLayerTreeHostImpl::updateRootScrollLayerImplTransform() 342 void CCLayerTreeHostImpl::updateRootScrollLayerImplTransform()
343 { 343 {
344 if (m_rootScrollLayerImpl) { 344 if (m_rootScrollLayerImpl) {
345 m_rootScrollLayerImpl->setImplTransform(implTransform()); 345 m_rootScrollLayerImpl->setImplTransform(implTransform());
346 } 346 }
347 } 347 }
348 348
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 1475
1476 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat ionController(); 1476 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat ionController();
1477 if (scrollbarController && scrollbarController->animate(monotonicTime)) 1477 if (scrollbarController && scrollbarController->animate(monotonicTime))
1478 m_client->setNeedsRedrawOnImplThread(); 1478 m_client->setNeedsRedrawOnImplThread();
1479 1479
1480 for (size_t i = 0; i < layer->children().size(); ++i) 1480 for (size_t i = 0; i < layer->children().size(); ++i)
1481 animateScrollbarsRecursive(layer->children()[i], monotonicTime); 1481 animateScrollbarsRecursive(layer->children()[i], monotonicTime);
1482 } 1482 }
1483 1483
1484 } // namespace cc 1484 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698