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

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

Issue 468343002: Rename repaint to paintInvalidation in core/rendering/compositing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix invalidator spelling Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 GraphicsLayerPaintOverflowContents = (1 << 3), 45 GraphicsLayerPaintOverflowContents = (1 << 3),
46 GraphicsLayerPaintCompositedScroll = (1 << 4), 46 GraphicsLayerPaintCompositedScroll = (1 << 4),
47 GraphicsLayerPaintChildClippingMask = (1 << 5), 47 GraphicsLayerPaintChildClippingMask = (1 << 5),
48 GraphicsLayerPaintAllWithOverflowClip = (GraphicsLayerPaintBackground | Grap hicsLayerPaintForeground | GraphicsLayerPaintMask) 48 GraphicsLayerPaintAllWithOverflowClip = (GraphicsLayerPaintBackground | Grap hicsLayerPaintForeground | GraphicsLayerPaintMask)
49 }; 49 };
50 typedef unsigned GraphicsLayerPaintingPhase; 50 typedef unsigned GraphicsLayerPaintingPhase;
51 51
52 enum { 52 enum {
53 LayerTreeNormal = 0, 53 LayerTreeNormal = 0,
54 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer addresses. 54 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer addresses.
55 LayerTreeIncludesRepaintRects = 1 << 1, 55 LayerTreeIncludesPaintInvalidationRects = 1 << 1,
56 LayerTreeIncludesPaintingPhases = 1 << 2, 56 LayerTreeIncludesPaintingPhases = 1 << 2,
57 LayerTreeIncludesRootLayer = 1 << 3, 57 LayerTreeIncludesRootLayer = 1 << 3,
58 LayerTreeIncludesClipAndScrollParents = 1 << 4 58 LayerTreeIncludesClipAndScrollParents = 1 << 4
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 hardware-accelerated animation started. 66 // Callback for when hardware-accelerated animation started.
67 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me) = 0; 67 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me) = 0;
68 68
69 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0; 69 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0;
70 virtual bool isTrackingRepaints() const { return false; } 70 virtual bool isTrackingPaintInvalidations() const { return false; }
71 71
72 virtual String debugName(const GraphicsLayer*) = 0; 72 virtual String debugName(const GraphicsLayer*) = 0;
73 73
74 #if ENABLE(ASSERT) 74 #if ENABLE(ASSERT)
75 // CompositedLayerMapping overrides this to verify that it is not 75 // CompositedLayerMapping overrides this to verify that it is not
76 // currently painting contents. An ASSERT fails, if it is. 76 // currently painting contents. An ASSERT fails, if it is.
77 // This is executed in GraphicsLayer construction and destruction 77 // This is executed in GraphicsLayer construction and destruction
78 // to verify that we don't create or destroy GraphicsLayers 78 // to verify that we don't create or destroy GraphicsLayers
79 // while painting. 79 // while painting.
80 virtual void verifyNotPainting() { } 80 virtual void verifyNotPainting() { }
81 #endif 81 #endif
82 }; 82 };
83 83
84 } // namespace blink 84 } // namespace blink
85 85
86 #endif // GraphicsLayerClient_h 86 #endif // GraphicsLayerClient_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698