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

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

Issue 565793003: [Invalidation Tracking] Add trace events for compositor based invalidations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: squashed -> squashing Created 6 years, 3 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, 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 15 matching lines...) Expand all
26 26
27 #ifndef GraphicsLayerUpdater_h 27 #ifndef GraphicsLayerUpdater_h
28 #define GraphicsLayerUpdater_h 28 #define GraphicsLayerUpdater_h
29 29
30 #include "platform/graphics/GraphicsLayer.h" 30 #include "platform/graphics/GraphicsLayer.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class RenderLayer; 34 class RenderLayer;
35 35
36 typedef Vector<std::pair<RenderLayer*, const char*> > LayersNeedingPaintInvalida tion;
37
36 class GraphicsLayerUpdater { 38 class GraphicsLayerUpdater {
37 39
38 public: 40 public:
39 GraphicsLayerUpdater(); 41 GraphicsLayerUpdater();
40 ~GraphicsLayerUpdater(); 42 ~GraphicsLayerUpdater();
41 43
42 enum UpdateType { 44 enum UpdateType {
43 DoNotForceUpdate, 45 DoNotForceUpdate,
44 ForceUpdate, 46 ForceUpdate,
45 }; 47 };
46 48
47 void update(RenderLayer&, Vector<RenderLayer*>& layersNeedingPaintInvalidati on); 49 void update(RenderLayer&, LayersNeedingPaintInvalidation&);
48 50
49 bool needsRebuildTree() const { return m_needsRebuildTree; } 51 bool needsRebuildTree() const { return m_needsRebuildTree; }
50 52
51 #if ENABLE(ASSERT) 53 #if ENABLE(ASSERT)
52 static void assertNeedsToUpdateGraphicsLayerBitsCleared(RenderLayer&); 54 static void assertNeedsToUpdateGraphicsLayerBitsCleared(RenderLayer&);
53 #endif 55 #endif
54 56
55 private: 57 private:
56 class UpdateContext; 58 class UpdateContext;
57 59
58 void updateRecursive(RenderLayer&, UpdateType, const UpdateContext&, Vector< RenderLayer*>& layersNeedingPaintInvalidation); 60 void updateRecursive(RenderLayer&, UpdateType, const UpdateContext&, LayersN eedingPaintInvalidation&);
59 61
60 bool m_needsRebuildTree; 62 bool m_needsRebuildTree;
61 }; 63 };
62 64
63 } // namespace blink 65 } // namespace blink
64 66
65 #endif // GraphicsLayerUpdater_h 67 #endif // GraphicsLayerUpdater_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698