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