| 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 25 matching lines...) Expand all Loading... |
| 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 PaintDefaultBehavior, | 43 PaintDefaultBehavior, |
| 44 DisplayListConstructionDisabled, | 44 DisplayListConstructionDisabled, |
| 45 DisplayListCachingDisabled, | 45 DisplayListCachingDisabled, |
| 46 DisplayListPaintingDisabled | 46 DisplayListPaintingDisabled, |
| 47 SubsequenceCachingDisabled |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 // The paintable region is the rectangular region, within the bounds of the
layer | 50 // The paintable region is the rectangular region, within the bounds of the
layer |
| 50 // this client paints, that the client is capable of painting via paintConte
nts(). | 51 // this client paints, that the client is capable of painting via paintConte
nts(). |
| 51 // Calling paintContents will return a WebDisplayitemList that is guaranteed
valid | 52 // Calling paintContents will return a WebDisplayitemList that is guaranteed
valid |
| 52 // only within this region. | 53 // only within this region. |
| 53 // In particular, this is used to represent the interest rect in Blink. | 54 // In particular, this is used to represent the interest rect in Blink. |
| 54 virtual gfx::Rect paintableRegion() = 0; | 55 virtual gfx::Rect paintableRegion() = 0; |
| 55 | 56 |
| 56 // Paints the content area for the layer, typically dirty rects submitted | 57 // Paints the content area for the layer, typically dirty rects submitted |
| (...skipping 11 matching lines...) Expand all Loading... |
| 68 // result includes data cached internally during painting. | 69 // result includes data cached internally during painting. |
| 69 virtual size_t approximateUnsharedMemoryUsage() const { return 0; } | 70 virtual size_t approximateUnsharedMemoryUsage() const { return 0; } |
| 70 | 71 |
| 71 protected: | 72 protected: |
| 72 virtual ~WebContentLayerClient() { } | 73 virtual ~WebContentLayerClient() { } |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace blink | 76 } // namespace blink |
| 76 | 77 |
| 77 #endif // WebContentLayerClient_h | 78 #endif // WebContentLayerClient_h |
| OLD | NEW |