| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 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 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 struct WebRect; | 37 struct WebRect; |
| 38 class WebDisplayItemList; | 38 class WebDisplayItemList; |
| 39 | 39 |
| 40 class BLINK_PLATFORM_EXPORT WebContentLayerClient { | 40 class BLINK_PLATFORM_EXPORT WebContentLayerClient { |
| 41 public: | 41 public: |
| 42 enum PaintingControlSetting { | 42 enum PaintingControlSetting { |
| 43 // Returns the last PaintArtifact produced. |
| 43 PaintDefaultBehavior, | 44 PaintDefaultBehavior, |
| 45 // Paints the content to simulate the behavior of FrameView::synchronize
dPaint. |
| 46 PaintDefaultBehaviorForTest, |
| 44 DisplayListConstructionDisabled, | 47 DisplayListConstructionDisabled, |
| 45 DisplayListCachingDisabled, | 48 DisplayListCachingDisabled, |
| 46 DisplayListPaintingDisabled, | 49 DisplayListPaintingDisabled, |
| 47 SubsequenceCachingDisabled | 50 SubsequenceCachingDisabled |
| 48 }; | 51 }; |
| 49 | 52 |
| 50 // The paintable region is the rectangular region, within the bounds of the
layer | 53 // The paintable region is the rectangular region, within the bounds of the
layer |
| 51 // this client paints, that the client is capable of painting via paintConte
nts(). | 54 // this client paints, that the client is capable of painting via paintConte
nts(). |
| 52 // Calling paintContents will return a WebDisplayitemList that is guaranteed
valid | 55 // Calling paintContents will return a WebDisplayitemList that is guaranteed
valid |
| 53 // only within this region. | 56 // only within this region. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 69 // result includes data cached internally during painting. | 72 // result includes data cached internally during painting. |
| 70 virtual size_t approximateUnsharedMemoryUsage() const { return 0; } | 73 virtual size_t approximateUnsharedMemoryUsage() const { return 0; } |
| 71 | 74 |
| 72 protected: | 75 protected: |
| 73 virtual ~WebContentLayerClient() { } | 76 virtual ~WebContentLayerClient() { } |
| 74 }; | 77 }; |
| 75 | 78 |
| 76 } // namespace blink | 79 } // namespace blink |
| 77 | 80 |
| 78 #endif // WebContentLayerClient_h | 81 #endif // WebContentLayerClient_h |
| OLD | NEW |