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

Side by Side Diff: Source/core/dom/DocumentLifecycle.h

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 InPerformLayout, 58 InPerformLayout,
59 AfterPerformLayout, 59 AfterPerformLayout,
60 LayoutClean, 60 LayoutClean,
61 61
62 InCompositingUpdate, 62 InCompositingUpdate,
63 CompositingClean, 63 CompositingClean,
64 64
65 InPaintInvalidation, 65 InPaintInvalidation,
66 PaintInvalidationClean, 66 PaintInvalidationClean,
67 67
68 // TODO(chrishtr): add lifecycle states for scrolling update and paint.
Ian Vollick 2015/07/23 22:53:06 This sounds exciting. Where will the scrolling upd
chrishtr 2015/07/23 23:57:39 t has to be after compositing also, to map scrolli
69
68 // Once the document starts shuting down, we cannot return 70 // Once the document starts shuting down, we cannot return
69 // to the style/layout/compositing states. 71 // to the style/layout/compositing states.
70 Stopping, 72 Stopping,
71 Stopped, 73 Stopped,
72 Disposed, 74 Disposed,
73 }; 75 };
74 76
75 class Scope { 77 class Scope {
76 WTF_MAKE_NONCOPYABLE(Scope); 78 WTF_MAKE_NONCOPYABLE(Scope);
77 public: 79 public:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 inline bool DocumentLifecycle::stateAllowsLayoutInvalidation() const 188 inline bool DocumentLifecycle::stateAllowsLayoutInvalidation() const
187 { 189 {
188 return m_state != InPerformLayout 190 return m_state != InPerformLayout
189 && m_state != InCompositingUpdate 191 && m_state != InCompositingUpdate
190 && m_state != InPaintInvalidation; 192 && m_state != InPaintInvalidation;
191 } 193 }
192 194
193 } // namespace blink 195 } // namespace blink
194 196
195 #endif 197 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698