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

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

Issue 185633002: Adding monotonic only API to Blink's animation delegate interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding BLINK_PLATFORM_EXPORT back in. Created 6 years, 9 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Counter that tracks what index the next RenderLayer would be if it ge ts squashed to the current squashing layer. 230 // Counter that tracks what index the next RenderLayer would be if it ge ts squashed to the current squashing layer.
231 size_t nextSquashedLayerIndex; 231 size_t nextSquashedLayerIndex;
232 }; 232 };
233 233
234 CompositingStateTransitionType computeCompositedLayerUpdate(const RenderLaye r*); 234 CompositingStateTransitionType computeCompositedLayerUpdate(const RenderLaye r*);
235 // Make updates to the layer based on viewport-constrained properties such a s position:fixed. This can in turn affect 235 // Make updates to the layer based on viewport-constrained properties such a s position:fixed. This can in turn affect
236 // compositing. 236 // compositing.
237 bool updateLayerIfViewportConstrained(RenderLayer*); 237 bool updateLayerIfViewportConstrained(RenderLayer*);
238 238
239 // GraphicsLayerClient implementation 239 // GraphicsLayerClient implementation
240 virtual void notifyAnimationStarted(const GraphicsLayer*, double, double) OV ERRIDE { } 240 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE { }
241 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect&) OVERRIDE; 241 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect&) OVERRIDE;
242 242
243 virtual bool isTrackingRepaints() const OVERRIDE; 243 virtual bool isTrackingRepaints() const OVERRIDE;
244 244
245 // Whether the given RL needs to paint into its own separate backing (and he nce would need its own CompositedLayerMapping). 245 // Whether the given RL needs to paint into its own separate backing (and he nce would need its own CompositedLayerMapping).
246 bool needsOwnBacking(const RenderLayer*) const; 246 bool needsOwnBacking(const RenderLayer*) const;
247 // Whether the layer could ever be composited. 247 // Whether the layer could ever be composited.
248 bool canBeComposited(const RenderLayer*) const; 248 bool canBeComposited(const RenderLayer*) const;
249 249
250 void updateDirectCompositingReasons(RenderLayer*); 250 void updateDirectCompositingReasons(RenderLayer*);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 372 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
373 #if USE(RUBBER_BANDING) 373 #if USE(RUBBER_BANDING)
374 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 374 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
375 #endif 375 #endif
376 }; 376 };
377 377
378 378
379 } // namespace WebCore 379 } // namespace WebCore
380 380
381 #endif // RenderLayerCompositor_h 381 #endif // RenderLayerCompositor_h
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | Source/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698