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

Side by Side Diff: Source/core/rendering/compositing/CompositedLayerMapping.h

Issue 652293002: Follow up RenderPart refactoring (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Returns true if this layer has content that needs to be rendered by paint ing into the backing store. 277 // Returns true if this layer has content that needs to be rendered by paint ing into the backing store.
278 bool containsPaintedContent() const; 278 bool containsPaintedContent() const;
279 // Returns true if the RenderLayer just contains an image that we can compos ite directly. 279 // Returns true if the RenderLayer just contains an image that we can compos ite directly.
280 bool isDirectlyCompositedImage() const; 280 bool isDirectlyCompositedImage() const;
281 void updateImageContents(); 281 void updateImageContents();
282 282
283 Color rendererBackgroundColor() const; 283 Color rendererBackgroundColor() const;
284 void updateBackgroundColor(); 284 void updateBackgroundColor();
285 void updateContentsRect(); 285 void updateContentsRect();
286 void updateContentsOffsetInCompositingLayer(const IntPoint& snappedOffsetFro mCompositedAncestor, const IntPoint& graphicsLayerParentLocation); 286 void updateContentsOffsetInCompositingLayer(const IntPoint& snappedOffsetFro mCompositedAncestor, const IntPoint& graphicsLayerParentLocation);
287 void updateAfterWidgetResize(); 287 void updateAfterPartResize();
288 void updateCompositingReasons(); 288 void updateCompositingReasons();
289 289
290 static bool hasVisibleNonCompositingDescendant(RenderLayer* parent); 290 static bool hasVisibleNonCompositingDescendant(RenderLayer* parent);
291 291
292 void doPaintTask(const GraphicsLayerPaintInfo&, const PaintLayerFlags&, Grap hicsContext*, const IntRect& clip); 292 void doPaintTask(const GraphicsLayerPaintInfo&, const PaintLayerFlags&, Grap hicsContext*, const IntRect& clip);
293 293
294 // Computes the background clip rect for the given squashed layer, up to any containing layer that is squashed into the 294 // Computes the background clip rect for the given squashed layer, up to any containing layer that is squashed into the
295 // same squashing layer and contains this squashed layer's clipping ancestor . 295 // same squashing layer and contains this squashed layer's clipping ancestor .
296 // The clip rect is returned in the coordinate space of the given squashed l ayer. 296 // The clip rect is returned in the coordinate space of the given squashed l ayer.
297 // If there is no such containing layer, returns the infinite rect. 297 // If there is no such containing layer, returns the infinite rect.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 unsigned m_isMainFrameRenderViewLayer : 1; 423 unsigned m_isMainFrameRenderViewLayer : 1;
424 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; 424 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1;
425 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; 425 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1;
426 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 426 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
427 unsigned m_scrollingContentsAreEmpty : 1; 427 unsigned m_scrollingContentsAreEmpty : 1;
428 }; 428 };
429 429
430 } // namespace blink 430 } // namespace blink
431 431
432 #endif // CompositedLayerMapping_h 432 #endif // CompositedLayerMapping_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698