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

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

Issue 135473002: Include debug name in GraphicsLayerDebugInfo. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 11 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 | Annotate | Revision Log
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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 GraphicsLayerDebugInfo& GraphicsLayer::debugInfo() 505 GraphicsLayerDebugInfo& GraphicsLayer::debugInfo()
506 { 506 {
507 return m_debugInfo; 507 return m_debugInfo;
508 } 508 }
509 509
510 blink::WebGraphicsLayerDebugInfo* GraphicsLayer::takeDebugInfo() 510 blink::WebGraphicsLayerDebugInfo* GraphicsLayer::takeDebugInfo()
511 { 511 {
512 return m_debugInfo.clone(); 512 return m_debugInfo.clone();
513 } 513 }
514 514
515 blink::WebGraphicsLayerDebugInfo* GraphicsLayer::takeDebugInfoFor(WebLayer* laye r)
516 {
517 GraphicsLayerDebugInfo* clone = m_debugInfo.clone();
518 clone->setDebugName(debugName(layer));
519 return clone;
520 }
521
515 WebLayer* GraphicsLayer::contentsLayerIfRegistered() 522 WebLayer* GraphicsLayer::contentsLayerIfRegistered()
516 { 523 {
517 clearContentsLayerIfUnregistered(); 524 clearContentsLayerIfUnregistered();
518 return m_contentsLayer; 525 return m_contentsLayer;
519 } 526 }
520 527
521 double GraphicsLayer::backingStoreMemoryEstimate() const 528 double GraphicsLayer::backingStoreMemoryEstimate() const
522 { 529 {
523 if (!drawsContent()) 530 if (!drawsContent())
524 return 0; 531 return 0;
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 #ifndef NDEBUG 1247 #ifndef NDEBUG
1241 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) 1248 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer)
1242 { 1249 {
1243 if (!layer) 1250 if (!layer)
1244 return; 1251 return;
1245 1252
1246 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); 1253 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo);
1247 fprintf(stderr, "%s\n", output.utf8().data()); 1254 fprintf(stderr, "%s\n", output.utf8().data());
1248 } 1255 }
1249 #endif 1256 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.h ('k') | Source/platform/graphics/GraphicsLayerDebugInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698