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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization Created 3 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 enum UpdateType { 44 enum UpdateType {
45 DoNotForceUpdate, 45 DoNotForceUpdate,
46 ForceUpdate, 46 ForceUpdate,
47 }; 47 };
48 48
49 void update(PaintLayer&, Vector<PaintLayer*>& layersNeedingPaintInvalidation); 49 void update(PaintLayer&, Vector<PaintLayer*>& layersNeedingPaintInvalidation);
50 50
51 bool needsRebuildTree() const { return m_needsRebuildTree; } 51 bool needsRebuildTree() const { return m_needsRebuildTree; }
52 52
53 #if ENABLE(ASSERT) 53 #if DCHECK_IS_ON()
54 static void assertNeedsToUpdateGraphicsLayerBitsCleared(PaintLayer&); 54 static void assertNeedsToUpdateGraphicsLayerBitsCleared(PaintLayer&);
55 #endif 55 #endif
56 56
57 private: 57 private:
58 class UpdateContext; 58 class UpdateContext;
59 59
60 void updateRecursive(PaintLayer&, 60 void updateRecursive(PaintLayer&,
61 UpdateType, 61 UpdateType,
62 const UpdateContext&, 62 const UpdateContext&,
63 Vector<PaintLayer*>& layersNeedingPaintInvalidation); 63 Vector<PaintLayer*>& layersNeedingPaintInvalidation);
64 64
65 bool m_needsRebuildTree; 65 bool m_needsRebuildTree;
66 }; 66 };
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // GraphicsLayerUpdater_h 70 #endif // GraphicsLayerUpdater_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698