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

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

Issue 1131833002: [Sketch] Animations: Torpedo the old intrusive animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scroll
Patch Set: Delete more. Created 5 years, 7 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 LayerTreeIncludesClipAndScrollParents = 1 << 4, 55 LayerTreeIncludesClipAndScrollParents = 1 << 4,
56 LayerTreeIncludesScrollBlocksOn = 1 << 5, 56 LayerTreeIncludesScrollBlocksOn = 1 << 5,
57 LayerTreeIncludesPaintInvalidationObjects = 1 << 6, 57 LayerTreeIncludesPaintInvalidationObjects = 1 << 6,
58 }; 58 };
59 typedef unsigned LayerTreeFlags; 59 typedef unsigned LayerTreeFlags;
60 60
61 class PLATFORM_EXPORT GraphicsLayerClient { 61 class PLATFORM_EXPORT GraphicsLayerClient {
62 public: 62 public:
63 virtual ~GraphicsLayerClient() {} 63 virtual ~GraphicsLayerClient() {}
64 64
65 // Callback for when compositor animation started.
66 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me, int group) { };
67
68 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0; 65 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0;
69 virtual bool isTrackingPaintInvalidations() const { return false; } 66 virtual bool isTrackingPaintInvalidations() const { return false; }
70 67
71 virtual String debugName(const GraphicsLayer*) = 0; 68 virtual String debugName(const GraphicsLayer*) = 0;
72 69
73 #if ENABLE(ASSERT) 70 #if ENABLE(ASSERT)
74 // CompositedLayerMapping overrides this to verify that it is not 71 // CompositedLayerMapping overrides this to verify that it is not
75 // currently painting contents. An ASSERT fails, if it is. 72 // currently painting contents. An ASSERT fails, if it is.
76 // This is executed in GraphicsLayer construction and destruction 73 // This is executed in GraphicsLayer construction and destruction
77 // to verify that we don't create or destroy GraphicsLayers 74 // to verify that we don't create or destroy GraphicsLayers
78 // while painting. 75 // while painting.
79 virtual void verifyNotPainting() { } 76 virtual void verifyNotPainting() { }
80 #endif 77 #endif
81 }; 78 };
82 79
83 } // namespace blink 80 } // namespace blink
84 81
85 #endif // GraphicsLayerClient_h 82 #endif // GraphicsLayerClient_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/graphics/GraphicsLayerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698