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

Side by Side Diff: Source/core/rendering/compositing/GraphicsLayerUpdater.h

Issue 210093005: Remove histogram from GraphicsLayerUpdater::rebuildTree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fewer private fields Created 6 years, 9 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
« no previous file with comments | « no previous file | Source/core/rendering/compositing/GraphicsLayerUpdater.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 #include "wtf/Vector.h" 31 #include "wtf/Vector.h"
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class RenderLayer; 35 class RenderLayer;
36 class RenderPart; 36 class RenderPart;
37 class RenderView; 37 class RenderView;
38 38
39 class GraphicsLayerUpdater { 39 class GraphicsLayerUpdater {
40 public: 40 public:
41 explicit GraphicsLayerUpdater(RenderView&); 41 GraphicsLayerUpdater();
42 ~GraphicsLayerUpdater(); 42 ~GraphicsLayerUpdater();
43 43
44 enum UpdateType { 44 enum UpdateType {
45 DoNotForceUpdate, 45 DoNotForceUpdate,
46 ForceUpdate, 46 ForceUpdate,
47 }; 47 };
48 48
49 void updateRecursive(RenderLayer&, UpdateType); 49 void updateRecursive(RenderLayer&, UpdateType);
50 void rebuildTree(RenderLayer&, UpdateType, GraphicsLayerVector& childLayersO fEnclosingLayer, int depth); 50 void rebuildTree(RenderLayer&, UpdateType, GraphicsLayerVector& childLayersO fEnclosingLayer);
51 51
52 private: 52 private:
53 UpdateType update(RenderLayer&, UpdateType); 53 UpdateType update(RenderLayer&, UpdateType);
54
55 RenderView& m_renderView;
56
57 // Used for gathering UMA data about the effect on memory usage of promoting all layers
58 // that have a webkit-transition on opacity or transform and intersect the v iewport.
59 double m_pixelsWithoutPromotingAllTransitions;
60 double m_pixelsAddedByPromotingAllTransitions;
61 }; 54 };
62 55
63 } // namespace WebCore 56 } // namespace WebCore
64 57
65 #endif // GraphicsLayerUpdater_h 58 #endif // GraphicsLayerUpdater_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/compositing/GraphicsLayerUpdater.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698