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

Side by Side Diff: Source/core/rendering/RenderLayerCompositor.h

Issue 18473002: Add an API to report debugName in GraphicsLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: clear setName Created 7 years, 4 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 void resetTrackedRepaintRects(); 200 void resetTrackedRepaintRects();
201 void setTracksRepaints(bool); 201 void setTracksRepaints(bool);
202 202
203 void reportMemoryUsage(MemoryObjectInfo*) const; 203 void reportMemoryUsage(MemoryObjectInfo*) const;
204 void setShouldReevaluateCompositingAfterLayout() { m_reevaluateCompositingAf terLayout = true; } 204 void setShouldReevaluateCompositingAfterLayout() { m_reevaluateCompositingAf terLayout = true; }
205 205
206 bool viewHasTransparentBackground(Color* backgroundColor = 0) const; 206 bool viewHasTransparentBackground(Color* backgroundColor = 0) const;
207 207
208 // Returns all reasons (direct, indirectly due to subtree, and indirectly du e to overlap) that a layer should be composited. 208 // Returns all reasons (direct, indirectly due to subtree, and indirectly du e to overlap) that a layer should be composited.
209 CompositingReasons reasonsForCompositing(const RenderLayer*) const; 209 CompositingReasons reasonsForCompositing(const RenderLayer*) const;
210
211 virtual String debugName(const GraphicsLayer*) OVERRIDE;
210 212
211 private: 213 private:
212 class OverlapMap; 214 class OverlapMap;
213 215
214 // GraphicsLayerClient implementation 216 // GraphicsLayerClient implementation
215 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE { } 217 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE { }
216 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect&) OVERRIDE; 218 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect&) OVERRIDE;
217 219
218 virtual bool isTrackingRepaints() const OVERRIDE; 220 virtual bool isTrackingRepaints() const OVERRIDE;
219 221
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap. 366 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap.
365 double m_obligatoryBackingStoreBytes; 367 double m_obligatoryBackingStoreBytes;
366 double m_secondaryBackingStoreBytes; 368 double m_secondaryBackingStoreBytes;
367 #endif 369 #endif
368 }; 370 };
369 371
370 372
371 } // namespace WebCore 373 } // namespace WebCore
372 374
373 #endif // RenderLayerCompositor_h 375 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698