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

Side by Side Diff: Source/core/rendering/RenderLayerBacking.h

Issue 13462003: Add support for accelerated fixed root background (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@background-attachment-fixed2
Patch Set: Moved the layout tests. Created 7 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 GraphicsLayer* graphicsLayer() const { return m_graphicsLayer.get(); } 78 GraphicsLayer* graphicsLayer() const { return m_graphicsLayer.get(); }
79 79
80 // Layer to clip children 80 // Layer to clip children
81 bool hasClippingLayer() const { return m_childContainmentLayer; } 81 bool hasClippingLayer() const { return m_childContainmentLayer; }
82 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get(); } 82 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get(); }
83 83
84 // Layer to get clipped by ancestor 84 // Layer to get clipped by ancestor
85 bool hasAncestorClippingLayer() const { return m_ancestorClippingLayer != 0; } 85 bool hasAncestorClippingLayer() const { return m_ancestorClippingLayer != 0; }
86 GraphicsLayer* ancestorClippingLayer() const { return m_ancestorClippingLaye r.get(); } 86 GraphicsLayer* ancestorClippingLayer() const { return m_ancestorClippingLaye r.get(); }
87 87
88 GraphicsLayer* contentsContainmentLayer() const { return m_contentsContainme ntLayer.get(); }
89
90 bool hasContentsLayer() const { return m_foregroundLayer != 0; } 88 bool hasContentsLayer() const { return m_foregroundLayer != 0; }
91 GraphicsLayer* foregroundLayer() const { return m_foregroundLayer.get(); } 89 GraphicsLayer* foregroundLayer() const { return m_foregroundLayer.get(); }
92 90
93 GraphicsLayer* backgroundLayer() const { return m_backgroundLayer.get(); } 91 GraphicsLayer* backgroundLayer() const { return m_backgroundLayer.get(); }
94 bool backgroundLayerPaintsFixedRootBackground() const { return m_backgroundL ayerPaintsFixedRootBackground; } 92 bool backgroundLayerPaintsFixedRootBackground() const { return m_backgroundL ayerPaintsFixedRootBackground; }
95 93
96 bool hasScrollingLayer() const { return m_scrollingLayer; } 94 bool hasScrollingLayer() const { return m_scrollingLayer; }
97 GraphicsLayer* scrollingLayer() const { return m_scrollingLayer.get(); } 95 GraphicsLayer* scrollingLayer() const { return m_scrollingLayer.get(); }
98 GraphicsLayer* scrollingContentsLayer() const { return m_scrollingContentsLa yer.get(); } 96 GraphicsLayer* scrollingContentsLayer() const { return m_scrollingContentsLa yer.get(); }
99 97
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 bool shouldClipCompositedBounds() const; 232 bool shouldClipCompositedBounds() const;
235 233
236 void paintIntoLayer(const GraphicsLayer*, GraphicsContext*, const IntRect& p aintDirtyRect, PaintBehavior, GraphicsLayerPaintingPhase); 234 void paintIntoLayer(const GraphicsLayer*, GraphicsContext*, const IntRect& p aintDirtyRect, PaintBehavior, GraphicsLayerPaintingPhase);
237 235
238 static CSSPropertyID graphicsLayerToCSSProperty(AnimatedPropertyID); 236 static CSSPropertyID graphicsLayerToCSSProperty(AnimatedPropertyID);
239 static AnimatedPropertyID cssToGraphicsLayerProperty(CSSPropertyID); 237 static AnimatedPropertyID cssToGraphicsLayerProperty(CSSPropertyID);
240 238
241 RenderLayer* m_owningLayer; 239 RenderLayer* m_owningLayer;
242 240
243 OwnPtr<GraphicsLayer> m_ancestorClippingLayer; // Only used if we are clippe d by an ancestor which is not a stacking context. 241 OwnPtr<GraphicsLayer> m_ancestorClippingLayer; // Only used if we are clippe d by an ancestor which is not a stacking context.
244 OwnPtr<GraphicsLayer> m_contentsContainmentLayer; // Only used if we have a background layer; takes the transform.
245 OwnPtr<GraphicsLayer> m_graphicsLayer; 242 OwnPtr<GraphicsLayer> m_graphicsLayer;
246 OwnPtr<GraphicsLayer> m_foregroundLayer; // Only used in cases where we need to draw the foreground separately. 243 OwnPtr<GraphicsLayer> m_foregroundLayer; // Only used in cases where we need to draw the foreground separately.
247 OwnPtr<GraphicsLayer> m_backgroundLayer; // Only used in cases where we need to draw the background separately. 244 OwnPtr<GraphicsLayer> m_backgroundLayer; // Only used in cases where we need to draw the background separately.
248 OwnPtr<GraphicsLayer> m_childContainmentLayer; // Only used if we have clipp ing on a stacking context with compositing children, or if the layer has a tile cache. 245 OwnPtr<GraphicsLayer> m_childContainmentLayer; // Only used if we have clipp ing on a stacking context with compositing children, or if the layer has a tile cache.
249 OwnPtr<GraphicsLayer> m_maskLayer; // Only used if we have a mask. 246 OwnPtr<GraphicsLayer> m_maskLayer; // Only used if we have a mask.
250 247
251 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; 248 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar;
252 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; 249 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
253 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 250 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
254 251
255 OwnPtr<GraphicsLayer> m_scrollingLayer; // Only used if the layer is using c omposited scrolling. 252 OwnPtr<GraphicsLayer> m_scrollingLayer; // Only used if the layer is using c omposited scrolling.
256 OwnPtr<GraphicsLayer> m_scrollingContentsLayer; // Only used if the layer is using composited scrolling. 253 OwnPtr<GraphicsLayer> m_scrollingContentsLayer; // Only used if the layer is using composited scrolling.
257 254
258 uint64_t m_scrollLayerID; 255 uint64_t m_scrollLayerID;
259 256
260 IntRect m_compositedBounds; 257 IntRect m_compositedBounds;
261 258
262 bool m_artificiallyInflatedBounds; // bounds had to be made non-zero to make transform-origin work 259 bool m_artificiallyInflatedBounds; // bounds had to be made non-zero to make transform-origin work
263 bool m_boundsConstrainedByClipping; 260 bool m_boundsConstrainedByClipping;
264 bool m_isMainFrameRenderViewLayer; 261 bool m_isMainFrameRenderViewLayer;
265 bool m_requiresOwnBackingStore; 262 bool m_requiresOwnBackingStore;
266 bool m_canCompositeFilters; 263 bool m_canCompositeFilters;
267 bool m_backgroundLayerPaintsFixedRootBackground; 264 bool m_backgroundLayerPaintsFixedRootBackground;
268 }; 265 };
269 266
270 } // namespace WebCore 267 } // namespace WebCore
271 268
272 #endif // RenderLayerBacking_h 269 #endif // RenderLayerBacking_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698