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

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

Issue 2422973002: Revert of Convert a few more CFI blacklist entries into DISABLE_CFI_PERF attributes. (Closed)
Patch Set: 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 // FrameView::paintRecursively() does so. 992 // FrameView::paintRecursively() does so.
993 m_layer->layer()->invalidate(); 993 m_layer->layer()->invalidate();
994 for (size_t i = 0; i < m_linkHighlights.size(); ++i) 994 for (size_t i = 0; i < m_linkHighlights.size(); ++i)
995 m_linkHighlights[i]->invalidate(); 995 m_linkHighlights[i]->invalidate();
996 getPaintController().invalidateAll(); 996 getPaintController().invalidateAll();
997 997
998 trackRasterInvalidation(*this, IntRect(IntPoint(), expandedIntSize(m_size)), 998 trackRasterInvalidation(*this, IntRect(IntPoint(), expandedIntSize(m_size)),
999 PaintInvalidationFull); 999 PaintInvalidationFull);
1000 } 1000 }
1001 1001
1002 DISABLE_CFI_PERF
1003 void GraphicsLayer::setNeedsDisplayInRect( 1002 void GraphicsLayer::setNeedsDisplayInRect(
1004 const IntRect& rect, 1003 const IntRect& rect,
1005 PaintInvalidationReason invalidationReason, 1004 PaintInvalidationReason invalidationReason,
1006 const DisplayItemClient& client) { 1005 const DisplayItemClient& client) {
1007 if (!drawsContent()) 1006 if (!drawsContent())
1008 return; 1007 return;
1009 1008
1010 m_layer->layer()->invalidateRect(rect); 1009 m_layer->layer()->invalidateRect(rect);
1011 if (firstPaintInvalidationTrackingEnabled()) 1010 if (firstPaintInvalidationTrackingEnabled())
1012 m_debugInfo.appendAnnotatedInvalidateRect(rect, invalidationReason); 1011 m_debugInfo.appendAnnotatedInvalidateRect(rect, invalidationReason);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { 1273 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) {
1275 if (!layer) { 1274 if (!layer) {
1276 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1275 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1277 return; 1276 return;
1278 } 1277 }
1279 1278
1280 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1279 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1281 fprintf(stderr, "%s\n", output.utf8().data()); 1280 fprintf(stderr, "%s\n", output.utf8().data());
1282 } 1281 }
1283 #endif 1282 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698