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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h

Issue 1739743003: Blink Compositor Animation: Erase old animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude histograms.xml Created 4 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 LayerTreeIncludesClipAndScrollParents = 1 << 4, 56 LayerTreeIncludesClipAndScrollParents = 1 << 4,
57 LayerTreeIncludesPaintInvalidationObjects = 1 << 5, 57 LayerTreeIncludesPaintInvalidationObjects = 1 << 5,
58 LayerTreeIncludesCompositingReasons = 1 << 6, 58 LayerTreeIncludesCompositingReasons = 1 << 6,
59 }; 59 };
60 typedef unsigned LayerTreeFlags; 60 typedef unsigned LayerTreeFlags;
61 61
62 class PLATFORM_EXPORT GraphicsLayerClient { 62 class PLATFORM_EXPORT GraphicsLayerClient {
63 public: 63 public:
64 virtual ~GraphicsLayerClient() {} 64 virtual ~GraphicsLayerClient() {}
65 65
66 // Callback for when compositor animation started.
67 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me, int group) { }
68
69 virtual void notifyFirstPaint() { } 66 virtual void notifyFirstPaint() { }
70 virtual void notifyFirstTextPaint() { } 67 virtual void notifyFirstTextPaint() { }
71 virtual void notifyFirstImagePaint() { } 68 virtual void notifyFirstImagePaint() { }
72 69
73 virtual IntRect computeInterestRect(const GraphicsLayer*, const IntRect& pre viousInterestRect) const = 0; 70 virtual IntRect computeInterestRect(const GraphicsLayer*, const IntRect& pre viousInterestRect) const = 0;
74 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); } 71 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); }
75 virtual bool needsRepaint() const { return true; } 72 virtual bool needsRepaint() const { return true; }
76 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& interestRect) const = 0; 73 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& interestRect) const = 0;
77 74
78 virtual bool isTrackingPaintInvalidations() const { return false; } 75 virtual bool isTrackingPaintInvalidations() const { return false; }
79 76
80 virtual String debugName(const GraphicsLayer*) const = 0; 77 virtual String debugName(const GraphicsLayer*) const = 0;
81 78
82 #if ENABLE(ASSERT) 79 #if ENABLE(ASSERT)
83 // CompositedLayerMapping overrides this to verify that it is not 80 // CompositedLayerMapping overrides this to verify that it is not
84 // currently painting contents. An ASSERT fails, if it is. 81 // currently painting contents. An ASSERT fails, if it is.
85 // This is executed in GraphicsLayer construction and destruction 82 // This is executed in GraphicsLayer construction and destruction
86 // to verify that we don't create or destroy GraphicsLayers 83 // to verify that we don't create or destroy GraphicsLayers
87 // while painting. 84 // while painting.
88 virtual void verifyNotPainting() { } 85 virtual void verifyNotPainting() { }
89 #endif 86 #endif
90 }; 87 };
91 88
92 } // namespace blink 89 } // namespace blink
93 90
94 #endif // GraphicsLayerClient_h 91 #endif // GraphicsLayerClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698