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

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

Issue 24130008: Rename ENABLE(RUBBER_BANDING) to USE(RUBBER_BANDING). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 bool scrollingLayerDidChange(RenderLayer*); 177 bool scrollingLayerDidChange(RenderLayer*);
178 178
179 String layerTreeAsText(LayerTreeFlags); 179 String layerTreeAsText(LayerTreeFlags);
180 180
181 virtual void didCommitChangesForLayer(const GraphicsLayer*) const OVERRIDE; 181 virtual void didCommitChangesForLayer(const GraphicsLayer*) const OVERRIDE;
182 182
183 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo ntalScrollbar.get(); } 183 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo ntalScrollbar.get(); }
184 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical Scrollbar.get(); } 184 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical Scrollbar.get(); }
185 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner. get(); } 185 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner. get(); }
186 #if ENABLE(RUBBER_BANDING) 186 #if USE(RUBBER_BANDING)
187 GraphicsLayer* layerForOverhangAreas() const { return m_layerForOverhangArea s.get(); } 187 GraphicsLayer* layerForOverhangAreas() const { return m_layerForOverhangArea s.get(); }
188 188
189 GraphicsLayer* updateLayerForTopOverhangArea(bool wantsLayer); 189 GraphicsLayer* updateLayerForTopOverhangArea(bool wantsLayer);
190 GraphicsLayer* updateLayerForBottomOverhangArea(bool wantsLayer); 190 GraphicsLayer* updateLayerForBottomOverhangArea(bool wantsLayer);
191 #endif 191 #endif
192 192
193 void updateViewportConstraintStatus(RenderLayer*); 193 void updateViewportConstraintStatus(RenderLayer*);
194 void removeViewportConstrainedLayer(RenderLayer*); 194 void removeViewportConstrainedLayer(RenderLayer*);
195 195
196 void addOutOfFlowPositionedLayer(RenderLayer*); 196 void addOutOfFlowPositionedLayer(RenderLayer*);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 bool requiresCompositingForOverflowScrolling(const RenderLayer*) const; 291 bool requiresCompositingForOverflowScrolling(const RenderLayer*) const;
292 292
293 void addViewportConstrainedLayer(RenderLayer*); 293 void addViewportConstrainedLayer(RenderLayer*);
294 294
295 FixedPositionViewportConstraints computeFixedViewportConstraints(RenderLayer *) const; 295 FixedPositionViewportConstraints computeFixedViewportConstraints(RenderLayer *) const;
296 StickyPositionViewportConstraints computeStickyViewportConstraints(RenderLay er*) const; 296 StickyPositionViewportConstraints computeStickyViewportConstraints(RenderLay er*) const;
297 297
298 bool requiresHorizontalScrollbarLayer() const; 298 bool requiresHorizontalScrollbarLayer() const;
299 bool requiresVerticalScrollbarLayer() const; 299 bool requiresVerticalScrollbarLayer() const;
300 bool requiresScrollCornerLayer() const; 300 bool requiresScrollCornerLayer() const;
301 #if ENABLE(RUBBER_BANDING) 301 #if USE(RUBBER_BANDING)
302 bool requiresOverhangLayers() const; 302 bool requiresOverhangLayers() const;
303 #endif 303 #endif
304 304
305 #if !LOG_DISABLED 305 #if !LOG_DISABLED
306 const char* logReasonsForCompositing(const RenderLayer*); 306 const char* logReasonsForCompositing(const RenderLayer*);
307 void logLayerInfo(const RenderLayer*, int depth); 307 void logLayerInfo(const RenderLayer*, int depth);
308 #endif 308 #endif
309 309
310 private: 310 private:
311 RenderView* m_renderView; 311 RenderView* m_renderView;
(...skipping 30 matching lines...) Expand all
342 // walks while determining if layers have unclipped descendants. 342 // walks while determining if layers have unclipped descendants.
343 HashSet<RenderLayer*> m_outOfFlowPositionedLayers; 343 HashSet<RenderLayer*> m_outOfFlowPositionedLayers;
344 344
345 // Enclosing layer for overflow controls and the clipping layer 345 // Enclosing layer for overflow controls and the clipping layer
346 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer; 346 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer;
347 347
348 // Layers for overflow controls 348 // Layers for overflow controls
349 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; 349 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar;
350 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; 350 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
351 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 351 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
352 #if ENABLE(RUBBER_BANDING) 352 #if USE(RUBBER_BANDING)
353 OwnPtr<GraphicsLayer> m_layerForOverhangAreas; 353 OwnPtr<GraphicsLayer> m_layerForOverhangAreas;
354 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 354 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
355 #endif 355 #endif
356 356
357 #if !LOG_DISABLED 357 #if !LOG_DISABLED
358 int m_rootLayerUpdateCount; 358 int m_rootLayerUpdateCount;
359 int m_obligateCompositedLayerCount; // count of layer that have to be compos ited. 359 int m_obligateCompositedLayerCount; // count of layer that have to be compos ited.
360 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap. 360 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap.
361 double m_obligatoryBackingStoreBytes; 361 double m_obligatoryBackingStoreBytes;
362 double m_secondaryBackingStoreBytes; 362 double m_secondaryBackingStoreBytes;
363 #endif 363 #endif
364 }; 364 };
365 365
366 366
367 } // namespace WebCore 367 } // namespace WebCore
368 368
369 #endif // RenderLayerCompositor_h 369 #endif // RenderLayerCompositor_h
OLDNEW
« no previous file with comments | « Source/core/platform/mac/ScrollElasticityController.mm ('k') | Source/core/rendering/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698