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

Side by Side Diff: Source/core/rendering/compositing/CompositingRequirementsUpdater.cpp

Issue 319183004: Prefer to forward-declare GraphicsContext in headers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: schenney nit (pare down platform/geometry/ includes to *Rect.h) Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "core/rendering/compositing/CompositingRequirementsUpdater.h" 28 #include "core/rendering/compositing/CompositingRequirementsUpdater.h"
29 29
30 #include "core/rendering/RenderLayerStackingNode.h" 30 #include "core/rendering/RenderLayerStackingNode.h"
31 #include "core/rendering/RenderLayerStackingNodeIterator.h" 31 #include "core/rendering/RenderLayerStackingNodeIterator.h"
32 #include "core/rendering/RenderView.h" 32 #include "core/rendering/RenderView.h"
33 #include "core/rendering/compositing/RenderLayerCompositor.h" 33 #include "core/rendering/compositing/RenderLayerCompositor.h"
34 #include "platform/TraceEvent.h"
34 35
35 namespace WebCore { 36 namespace WebCore {
36 37
37 class OverlapMapContainer { 38 class OverlapMapContainer {
38 public: 39 public:
39 void add(const IntRect& bounds) 40 void add(const IntRect& bounds)
40 { 41 {
41 m_layerRects.append(bounds); 42 m_layerRects.append(bounds);
42 m_boundingBox.unite(bounds); 43 m_boundingBox.unite(bounds);
43 } 44 }
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 layer->setCompositingReasons(reasonsToComposite); 457 layer->setCompositingReasons(reasonsToComposite);
457 458
458 } 459 }
459 460
460 bool CompositingRequirementsUpdater::isRunningAcceleratedTransformAnimation(Rend erObject* renderer) const 461 bool CompositingRequirementsUpdater::isRunningAcceleratedTransformAnimation(Rend erObject* renderer) const
461 { 462 {
462 return renderer->style()->hasCurrentTransformAnimation(); 463 return renderer->style()->hasCurrentTransformAnimation();
463 } 464 }
464 465
465 } // namespace WebCore 466 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderView.cpp ('k') | Source/core/rendering/compositing/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698