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

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

Issue 2713673005: client-goodbye
Patch Set: Created 3 years, 10 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 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "public/platform/WebLayerStickyPositionConstraint.h" 51 #include "public/platform/WebLayerStickyPositionConstraint.h"
52 #include "third_party/skia/include/core/SkFilterQuality.h" 52 #include "third_party/skia/include/core/SkFilterQuality.h"
53 #include "third_party/skia/include/core/SkRefCnt.h" 53 #include "third_party/skia/include/core/SkRefCnt.h"
54 #include "wtf/Vector.h" 54 #include "wtf/Vector.h"
55 #include <memory> 55 #include <memory>
56 56
57 namespace blink { 57 namespace blink {
58 58
59 class CompositorFilterOperations; 59 class CompositorFilterOperations;
60 class Image; 60 class Image;
61 class InvalidationDebugging;
61 class JSONObject; 62 class JSONObject;
62 class LinkHighlight; 63 class LinkHighlight;
63 class PaintController; 64 class PaintController;
64 struct RasterInvalidationTracking; 65 struct RasterInvalidationTracking;
65 class ScrollableArea; 66 class ScrollableArea;
66 class WebLayer; 67 class WebLayer;
67 68
68 typedef Vector<GraphicsLayer*, 64> GraphicsLayerVector; 69 typedef Vector<GraphicsLayer*, 64> GraphicsLayerVector;
69 70
70 // GraphicsLayer is an abstraction for a rendering surface with backing store, 71 // GraphicsLayer is an abstraction for a rendering surface with backing store,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 void setFilterQuality(SkFilterQuality); 188 void setFilterQuality(SkFilterQuality);
188 189
189 // Some GraphicsLayers paint only the foreground or the background content 190 // Some GraphicsLayers paint only the foreground or the background content
190 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } 191 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; }
191 void setPaintingPhase(GraphicsLayerPaintingPhase); 192 void setPaintingPhase(GraphicsLayerPaintingPhase);
192 193
193 void setNeedsDisplay(); 194 void setNeedsDisplay();
194 // Mark the given rect (in layer coords) as needing display. Never goes deep. 195 // Mark the given rect (in layer coords) as needing display. Never goes deep.
195 void setNeedsDisplayInRect(const IntRect&, 196 void setNeedsDisplayInRect(const IntRect&,
196 PaintInvalidationReason, 197 PaintInvalidationReason,
197 const DisplayItemClient&); 198 const InvalidationDebugging&);
198 199
199 void setContentsNeedsDisplay(); 200 void setContentsNeedsDisplay();
200 201
201 // Set that the position/size of the contents (image or video). 202 // Set that the position/size of the contents (image or video).
202 void setContentsRect(const IntRect&); 203 void setContentsRect(const IntRect&);
203 204
204 // Layer contents 205 // Layer contents
205 void setContentsToImage( 206 void setContentsToImage(
206 Image*, 207 Image*,
207 RespectImageOrientationEnum = DoNotRespectImageOrientation); 208 RespectImageOrientationEnum = DoNotRespectImageOrientation);
(...skipping 14 matching lines...) Expand all
222 223
223 void setTracksRasterInvalidations(bool); 224 void setTracksRasterInvalidations(bool);
224 bool isTrackingOrCheckingRasterInvalidations() const { 225 bool isTrackingOrCheckingRasterInvalidations() const {
225 return RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() || 226 return RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() ||
226 m_isTrackingRasterInvalidations; 227 m_isTrackingRasterInvalidations;
227 } 228 }
228 229
229 void resetTrackedRasterInvalidations(); 230 void resetTrackedRasterInvalidations();
230 bool hasTrackedRasterInvalidations() const; 231 bool hasTrackedRasterInvalidations() const;
231 const RasterInvalidationTracking* getRasterInvalidationTracking() const; 232 const RasterInvalidationTracking* getRasterInvalidationTracking() const;
232 void trackRasterInvalidation(const DisplayItemClient&, 233 void trackRasterInvalidation(const InvalidationDebugging&,
233 const IntRect&, 234 const IntRect&,
234 PaintInvalidationReason); 235 PaintInvalidationReason);
235 236
236 void addLinkHighlight(LinkHighlight*); 237 void addLinkHighlight(LinkHighlight*);
237 void removeLinkHighlight(LinkHighlight*); 238 void removeLinkHighlight(LinkHighlight*);
238 // Exposed for tests 239 // Exposed for tests
239 unsigned numLinkHighlights() { return m_linkHighlights.size(); } 240 unsigned numLinkHighlights() { return m_linkHighlights.size(); }
240 LinkHighlight* getLinkHighlight(int i) { return m_linkHighlights[i]; } 241 LinkHighlight* getLinkHighlight(int i) { return m_linkHighlights[i]; }
241 242
242 void setScrollableArea(ScrollableArea*, bool isVisualViewport); 243 void setScrollableArea(ScrollableArea*, bool isVisualViewport);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 }; 406 };
406 407
407 } // namespace blink 408 } // namespace blink
408 409
409 #ifndef NDEBUG 410 #ifndef NDEBUG
410 // Outside the blink namespace for ease of invocation from gdb. 411 // Outside the blink namespace for ease of invocation from gdb.
411 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 412 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
412 #endif 413 #endif
413 414
414 #endif // GraphicsLayer_h 415 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698