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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

Issue 2309193002: Revert of Reland Compile under-invalidation checking in all builds (Closed)
Patch Set: Rebase and manually fix merge conflicts. 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
index 924d4e4c704307ca061b710a22e06d2814025159..bcb7bc8d207f3ebcb9c7cf010c2b08c7f3c2c9c7 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
@@ -208,7 +208,11 @@ public:
void setTracksPaintInvalidations(bool);
bool isTrackingOrCheckingPaintInvalidations() const
{
- return RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() || m_isTrackingPaintInvalidations;
+#if DCHECK_IS_ON()
+ if (RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabled())
+ return true;
+#endif
+ return m_isTrackingPaintInvalidations;
}
void resetTrackedPaintInvalidations();
@@ -295,8 +299,10 @@ private:
typedef HashMap<int, int> RenderingContextMap;
std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, RenderingContextMap&) const;
+#if DCHECK_IS_ON()
sk_sp<SkPicture> capturePicture();
void checkPaintUnderInvalidations(const SkPicture&);
+#endif
GraphicsLayerClient* m_client;

Powered by Google App Engine
This is Rietveld 408576698