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

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

Issue 2419663009: 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
1002 void GraphicsLayer::setNeedsDisplayInRect( 1003 void GraphicsLayer::setNeedsDisplayInRect(
1003 const IntRect& rect, 1004 const IntRect& rect,
1004 PaintInvalidationReason invalidationReason, 1005 PaintInvalidationReason invalidationReason,
1005 const DisplayItemClient& client) { 1006 const DisplayItemClient& client) {
1006 if (!drawsContent()) 1007 if (!drawsContent())
1007 return; 1008 return;
1008 1009
1009 m_layer->layer()->invalidateRect(rect); 1010 m_layer->layer()->invalidateRect(rect);
1010 if (firstPaintInvalidationTrackingEnabled()) 1011 if (firstPaintInvalidationTrackingEnabled())
1011 m_debugInfo.appendAnnotatedInvalidateRect(rect, invalidationReason); 1012 m_debugInfo.appendAnnotatedInvalidateRect(rect, invalidationReason);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { 1274 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) {
1274 if (!layer) { 1275 if (!layer) {
1275 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1276 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1276 return; 1277 return;
1277 } 1278 }
1278 1279
1279 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1280 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1280 fprintf(stderr, "%s\n", output.utf8().data()); 1281 fprintf(stderr, "%s\n", output.utf8().data());
1281 } 1282 }
1282 #endif 1283 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698