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

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

Issue 2314103002: Reland of land Compile under-invalidation checking in all builds (Closed)
Patch Set: More expectations Created 4 years, 3 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 // Return a string with a human readable form of the layer tree, If debug is true 202 // Return a string with a human readable form of the layer tree, If debug is true
203 // pointers for the layers and timing data will be included in the returned string. 203 // pointers for the layers and timing data will be included in the returned string.
204 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; 204 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const;
205 205
206 std::unique_ptr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const; 206 std::unique_ptr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const;
207 207
208 void setTracksPaintInvalidations(bool); 208 void setTracksPaintInvalidations(bool);
209 bool isTrackingOrCheckingPaintInvalidations() const 209 bool isTrackingOrCheckingPaintInvalidations() const
210 { 210 {
211 #if DCHECK_IS_ON() 211 return RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() | | m_isTrackingPaintInvalidations;
212 if (RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnable d())
213 return true;
214 #endif
215 return m_isTrackingPaintInvalidations;
216 } 212 }
217 213
218 void resetTrackedPaintInvalidations(); 214 void resetTrackedPaintInvalidations();
219 bool hasTrackedPaintInvalidations() const; 215 bool hasTrackedPaintInvalidations() const;
220 void trackPaintInvalidation(const DisplayItemClient&, const IntRect&, PaintI nvalidationReason); 216 void trackPaintInvalidation(const DisplayItemClient&, const IntRect&, PaintI nvalidationReason);
221 217
222 void addLinkHighlight(LinkHighlight*); 218 void addLinkHighlight(LinkHighlight*);
223 void removeLinkHighlight(LinkHighlight*); 219 void removeLinkHighlight(LinkHighlight*);
224 // Exposed for tests 220 // Exposed for tests
225 unsigned numLinkHighlights() { return m_linkHighlights.size(); } 221 unsigned numLinkHighlights() { return m_linkHighlights.size(); }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 void updateContentsRect(); 288 void updateContentsRect();
293 289
294 void setContentsTo(WebLayer*); 290 void setContentsTo(WebLayer*);
295 void setupContentsLayer(WebLayer*); 291 void setupContentsLayer(WebLayer*);
296 void clearContentsLayerIfUnregistered(); 292 void clearContentsLayerIfUnregistered();
297 WebLayer* contentsLayerIfRegistered(); 293 WebLayer* contentsLayerIfRegistered();
298 294
299 typedef HashMap<int, int> RenderingContextMap; 295 typedef HashMap<int, int> RenderingContextMap;
300 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin gContextMap&) const; 296 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin gContextMap&) const;
301 297
302 #if DCHECK_IS_ON()
303 sk_sp<SkPicture> capturePicture(); 298 sk_sp<SkPicture> capturePicture();
304 void checkPaintUnderInvalidations(const SkPicture&); 299 void checkPaintUnderInvalidations(const SkPicture&);
305 #endif
306 300
307 GraphicsLayerClient* m_client; 301 GraphicsLayerClient* m_client;
308 302
309 // Offset from the owning layoutObject 303 // Offset from the owning layoutObject
310 DoubleSize m_offsetFromLayoutObject; 304 DoubleSize m_offsetFromLayoutObject;
311 305
312 // Position is relative to the parent GraphicsLayer 306 // Position is relative to the parent GraphicsLayer
313 FloatPoint m_position; 307 FloatPoint m_position;
314 FloatSize m_size; 308 FloatSize m_size;
315 309
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 }; 372 };
379 373
380 } // namespace blink 374 } // namespace blink
381 375
382 #ifndef NDEBUG 376 #ifndef NDEBUG
383 // Outside the blink namespace for ease of invocation from gdb. 377 // Outside the blink namespace for ease of invocation from gdb.
384 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 378 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
385 #endif 379 #endif
386 380
387 #endif // GraphicsLayer_h 381 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698