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

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

Issue 2380683006: SPv2: Add support for tracking raster paint invalidations in testing. (Closed)
Patch Set: none Created 4 years, 2 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const GraphicsLayer*, 73 const GraphicsLayer*,
74 const IntRect& previousInterestRect) const = 0; 74 const IntRect& previousInterestRect) const = 0;
75 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); } 75 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); }
76 // Returns whether the client needs to be repainted with respect to the given graphics layer. 76 // Returns whether the client needs to be repainted with respect to the given graphics layer.
77 virtual bool needsRepaint(const GraphicsLayer&) const = 0; 77 virtual bool needsRepaint(const GraphicsLayer&) const = 0;
78 virtual void paintContents(const GraphicsLayer*, 78 virtual void paintContents(const GraphicsLayer*,
79 GraphicsContext&, 79 GraphicsContext&,
80 GraphicsLayerPaintingPhase, 80 GraphicsLayerPaintingPhase,
81 const IntRect& interestRect) const = 0; 81 const IntRect& interestRect) const = 0;
82 82
83 virtual bool isTrackingPaintInvalidations() const { return false; } 83 virtual bool isTrackingRasterInvalidations() const { return false; }
84 84
85 virtual String debugName(const GraphicsLayer*) const = 0; 85 virtual String debugName(const GraphicsLayer*) const = 0;
86 86
87 #if ENABLE(ASSERT) 87 #if ENABLE(ASSERT)
88 // CompositedLayerMapping overrides this to verify that it is not 88 // CompositedLayerMapping overrides this to verify that it is not
89 // currently painting contents. An ASSERT fails, if it is. 89 // currently painting contents. An ASSERT fails, if it is.
90 // This is executed in GraphicsLayer construction and destruction 90 // This is executed in GraphicsLayer construction and destruction
91 // to verify that we don't create or destroy GraphicsLayers 91 // to verify that we don't create or destroy GraphicsLayers
92 // while painting. 92 // while painting.
93 virtual void verifyNotPainting() {} 93 virtual void verifyNotPainting() {}
94 #endif 94 #endif
95 }; 95 };
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif // GraphicsLayerClient_h 99 #endif // GraphicsLayerClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698