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 24 matching lines...) Expand all Loading... |
35 #include "WebPoint.h" | 35 #include "WebPoint.h" |
36 #include "WebRect.h" | 36 #include "WebRect.h" |
37 #include "WebScrollBlocksOn.h" | 37 #include "WebScrollBlocksOn.h" |
38 #include "WebSize.h" | 38 #include "WebSize.h" |
39 #include "WebString.h" | 39 #include "WebString.h" |
40 #include "WebVector.h" | 40 #include "WebVector.h" |
41 | 41 |
42 class SkMatrix44; | 42 class SkMatrix44; |
43 class SkImageFilter; | 43 class SkImageFilter; |
44 | 44 |
45 namespace cc { | |
46 class Layer; | |
47 class LayerClient; | |
48 } | |
49 | |
50 namespace blink { | 45 namespace blink { |
51 class WebCompositorAnimationDelegate; | 46 class WebCompositorAnimationDelegate; |
52 class WebFilterOperations; | 47 class WebFilterOperations; |
| 48 class WebLayerClient; |
53 class WebLayerScrollClient; | 49 class WebLayerScrollClient; |
54 struct WebFloatPoint; | 50 struct WebFloatPoint; |
55 struct WebLayerPositionConstraint; | 51 struct WebLayerPositionConstraint; |
56 | 52 |
57 class WebLayer { | 53 class WebLayer { |
58 public: | 54 public: |
59 virtual ~WebLayer() { } | 55 virtual ~WebLayer() { } |
60 | 56 |
61 // Returns a positive ID that will be unique across all WebLayers allocated
in this process. | 57 // Returns a positive ID that will be unique across all WebLayers allocated
in this process. |
62 virtual int id() const = 0; | 58 virtual int id() const = 0; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // deleting the scroll client. | 231 // deleting the scroll client. |
236 virtual void setScrollClient(WebLayerScrollClient*) = 0; | 232 virtual void setScrollClient(WebLayerScrollClient*) = 0; |
237 | 233 |
238 // Forces this layer to use a render surface. There is no benefit in doing | 234 // Forces this layer to use a render surface. There is no benefit in doing |
239 // so, but this is to facilitate benchmarks and tests. | 235 // so, but this is to facilitate benchmarks and tests. |
240 virtual void setForceRenderSurface(bool) = 0; | 236 virtual void setForceRenderSurface(bool) = 0; |
241 | 237 |
242 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 238 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
243 virtual bool isOrphan() const = 0; | 239 virtual bool isOrphan() const = 0; |
244 | 240 |
245 // Sets the cc-side layer client. | 241 virtual void setWebLayerClient(WebLayerClient*) = 0; |
246 virtual void setLayerClient(cc::LayerClient*) = 0; | |
247 | |
248 // Gets the underlying cc layer. | |
249 virtual const cc::Layer* ccLayer() const = 0; | |
250 }; | 242 }; |
251 | 243 |
252 } // namespace blink | 244 } // namespace blink |
253 | 245 |
254 #endif // WebLayer_h | 246 #endif // WebLayer_h |
OLD | NEW |