Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PaintController_h | 5 #ifndef PaintController_h |
| 6 #define PaintController_h | 6 #define PaintController_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/RuntimeEnabledFeatures.h" | 9 #include "platform/RuntimeEnabledFeatures.h" |
| 10 #include "platform/geometry/IntRect.h" | 10 #include "platform/geometry/IntRect.h" |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 class PLATFORM_EXPORT PaintController { | 36 class PLATFORM_EXPORT PaintController { |
| 37 WTF_MAKE_NONCOPYABLE(PaintController); | 37 WTF_MAKE_NONCOPYABLE(PaintController); |
| 38 WTF_MAKE_FAST_ALLOCATED(PaintController); | 38 WTF_MAKE_FAST_ALLOCATED(PaintController); |
| 39 public: | 39 public: |
| 40 static PassOwnPtr<PaintController> create() | 40 static PassOwnPtr<PaintController> create() |
| 41 { | 41 { |
| 42 return adoptPtr(new PaintController()); | 42 return adoptPtr(new PaintController()); |
| 43 } | 43 } |
| 44 | 44 |
| 45 // These methods are called during paint invalidation (or paint if SlimmingP aintSynchronizedPainting is on). | 45 // These methods are called during paint invalidation (or paint if SlimmingP aintSynchronizedPainting is on). |
| 46 void invalidate(const DisplayItemClientWrapper&, PaintInvalidationReason, co nst IntRect& previousPaintInvalidationRect, const IntRect& newPaintInvalidationR ect); | 46 void invalidate(const DisplayItemClientWrapper&, PaintInvalidationReason, co nst Vector<IntRect>& paintInvalidationRects); |
|
chrishtr
2015/10/22 00:02:41
If it's a vector, how is Walter's code supposed to
Xianzhu
2015/10/22 01:17:04
This is a good question which actually answers my
| |
| 47 void invalidateUntracked(DisplayItemClient); | 47 void invalidateUntracked(DisplayItemClient); |
| 48 void invalidateAll(); | 48 void invalidateAll(); |
| 49 | 49 |
| 50 // Record when paint offsets change during paint. | 50 // Record when paint offsets change during paint. |
| 51 void invalidatePaintOffset(const DisplayItemClientWrapper&); | 51 void invalidatePaintOffset(const DisplayItemClientWrapper&); |
| 52 #if ENABLE(ASSERT) | 52 #if ENABLE(ASSERT) |
| 53 bool paintOffsetWasInvalidated(DisplayItemClient) const; | 53 bool paintOffsetWasInvalidated(DisplayItemClient) const; |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 // These methods are called during painting. | 56 // These methods are called during painting. |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 // easily find where the duplicated ids are from. | 255 // easily find where the duplicated ids are from. |
| 256 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; | 256 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; |
| 257 #endif | 257 #endif |
| 258 | 258 |
| 259 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects; | 259 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects; |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } // namespace blink | 262 } // namespace blink |
| 263 | 263 |
| 264 #endif // PaintController_h | 264 #endif // PaintController_h |
| OLD | NEW |