OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "platform/graphics/ImageOrientation.h" | 43 #include "platform/graphics/ImageOrientation.h" |
44 #include "platform/graphics/PaintInvalidationReason.h" | 44 #include "platform/graphics/PaintInvalidationReason.h" |
45 #include "platform/graphics/paint/DisplayItemClient.h" | 45 #include "platform/graphics/paint/DisplayItemClient.h" |
46 #include "platform/graphics/paint/PaintController.h" | 46 #include "platform/graphics/paint/PaintController.h" |
47 #include "platform/heap/Handle.h" | 47 #include "platform/heap/Handle.h" |
48 #include "platform/transforms/TransformationMatrix.h" | 48 #include "platform/transforms/TransformationMatrix.h" |
49 #include "platform/wtf/Vector.h" | 49 #include "platform/wtf/Vector.h" |
50 #include "public/platform/WebContentLayer.h" | 50 #include "public/platform/WebContentLayer.h" |
51 #include "public/platform/WebImageLayer.h" | 51 #include "public/platform/WebImageLayer.h" |
52 #include "public/platform/WebLayerStickyPositionConstraint.h" | 52 #include "public/platform/WebLayerStickyPositionConstraint.h" |
| 53 #include "public/platform/WebScrollBoundaryBehavior.h" |
53 #include "third_party/skia/include/core/SkFilterQuality.h" | 54 #include "third_party/skia/include/core/SkFilterQuality.h" |
54 #include "third_party/skia/include/core/SkRefCnt.h" | 55 #include "third_party/skia/include/core/SkRefCnt.h" |
55 | 56 |
56 namespace blink { | 57 namespace blink { |
57 | 58 |
58 class CompositorFilterOperations; | 59 class CompositorFilterOperations; |
59 class Image; | 60 class Image; |
60 class JSONObject; | 61 class JSONObject; |
61 class LinkHighlight; | 62 class LinkHighlight; |
62 class PaintController; | 63 class PaintController; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 ContentLayerDelegate* ContentLayerDelegateForTesting() const { | 273 ContentLayerDelegate* ContentLayerDelegateForTesting() const { |
273 return content_layer_delegate_.get(); | 274 return content_layer_delegate_.get(); |
274 } | 275 } |
275 | 276 |
276 // DisplayItemClient methods | 277 // DisplayItemClient methods |
277 String DebugName() const final { return client_->DebugName(this); } | 278 String DebugName() const final { return client_->DebugName(this); } |
278 LayoutRect VisualRect() const override; | 279 LayoutRect VisualRect() const override; |
279 | 280 |
280 void SetHasWillChangeTransformHint(bool); | 281 void SetHasWillChangeTransformHint(bool); |
281 | 282 |
| 283 void SetScrollBoundaryBehavior(const WebScrollBoundaryBehavior&); |
| 284 |
282 protected: | 285 protected: |
283 String DebugName(cc::Layer*) const; | 286 String DebugName(cc::Layer*) const; |
284 bool ShouldFlattenTransform() const { return should_flatten_transform_; } | 287 bool ShouldFlattenTransform() const { return should_flatten_transform_; } |
285 | 288 |
286 explicit GraphicsLayer(GraphicsLayerClient*); | 289 explicit GraphicsLayer(GraphicsLayerClient*); |
287 // for testing | 290 // for testing |
288 friend class CompositedLayerMappingTest; | 291 friend class CompositedLayerMappingTest; |
289 friend class PaintControllerPaintTestBase; | 292 friend class PaintControllerPaintTestBase; |
290 | 293 |
291 private: | 294 private: |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 419 |
417 } // namespace blink | 420 } // namespace blink |
418 | 421 |
419 #ifndef NDEBUG | 422 #ifndef NDEBUG |
420 // Outside the blink namespace for ease of invocation from gdb. | 423 // Outside the blink namespace for ease of invocation from gdb. |
421 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 424 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
422 void PLATFORM_EXPORT showGraphicsLayers(const blink::GraphicsLayer*); | 425 void PLATFORM_EXPORT showGraphicsLayers(const blink::GraphicsLayer*); |
423 #endif | 426 #endif |
424 | 427 |
425 #endif // GraphicsLayer_h | 428 #endif // GraphicsLayer_h |
OLD | NEW |