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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #ifndef WebContentLayerClient_h | 26 #ifndef WebContentLayerClient_h |
27 #define WebContentLayerClient_h | 27 #define WebContentLayerClient_h |
28 | 28 |
29 #include "WebCanvas.h" | 29 #include "WebCanvas.h" |
30 #include "WebCommon.h" | 30 #include "WebCommon.h" |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 class WebDisplayItemList; | 34 class WebDisplayItemList; |
| 35 class WebDisplayItemTransformTree; |
| 36 class WebDisplayList; |
35 struct WebRect; | 37 struct WebRect; |
36 | 38 |
37 class BLINK_PLATFORM_EXPORT WebContentLayerClient { | 39 class BLINK_PLATFORM_EXPORT WebContentLayerClient { |
38 public: | 40 public: |
39 enum PaintingControlSetting { | 41 enum PaintingControlSetting { |
40 PaintDefaultBehavior, | 42 PaintDefaultBehavior, |
41 DisplayListConstructionDisabled, | 43 DisplayListConstructionDisabled, |
42 DisplayListCachingDisabled, | 44 DisplayListCachingDisabled, |
43 DisplayListPaintingDisabled | 45 DisplayListPaintingDisabled |
44 }; | 46 }; |
(...skipping 17 matching lines...) Expand all Loading... |
62 WebDisplayItemList*, | 64 WebDisplayItemList*, |
63 const WebRect& clip, | 65 const WebRect& clip, |
64 PaintingControlSetting = PaintDefaultBehavior) = 0; | 66 PaintingControlSetting = PaintDefaultBehavior) = 0; |
65 | 67 |
66 // Returns an estimate of the current memory usage within this object, | 68 // Returns an estimate of the current memory usage within this object, |
67 // excluding memory shared with painting artifacts (i.e., | 69 // excluding memory shared with painting artifacts (i.e., |
68 // WebDisplayItemList). Should be invoked after paintContents, so that the | 70 // WebDisplayItemList). Should be invoked after paintContents, so that the |
69 // result includes data cached internally during painting. | 71 // result includes data cached internally during painting. |
70 virtual size_t approximateUnsharedMemoryUsage() const { return 0; } | 72 virtual size_t approximateUnsharedMemoryUsage() const { return 0; } |
71 | 73 |
| 74 virtual const WebDisplayList* displayList() const { return 0; }; |
| 75 |
| 76 // This is only set on a root graphics layer. Alternatively, this could be s
et on the layer tree host. |
| 77 virtual const WebDisplayItemTransformTree* transformTree() const { return 0;
}; |
| 78 |
72 protected: | 79 protected: |
73 virtual ~WebContentLayerClient() { } | 80 virtual ~WebContentLayerClient() { } |
74 }; | 81 }; |
75 | 82 |
76 } // namespace blink | 83 } // namespace blink |
77 | 84 |
78 #endif // WebContentLayerClient_h | 85 #endif // WebContentLayerClient_h |
OLD | NEW |