| 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 16 matching lines...) Expand all Loading... |
| 27 #ifndef GraphicsLayer_h | 27 #ifndef GraphicsLayer_h |
| 28 #define GraphicsLayer_h | 28 #define GraphicsLayer_h |
| 29 | 29 |
| 30 #include "cc/layers/layer_client.h" | 30 #include "cc/layers/layer_client.h" |
| 31 #include "platform/PlatformExport.h" | 31 #include "platform/PlatformExport.h" |
| 32 #include "platform/geometry/FloatPoint.h" | 32 #include "platform/geometry/FloatPoint.h" |
| 33 #include "platform/geometry/FloatPoint3D.h" | 33 #include "platform/geometry/FloatPoint3D.h" |
| 34 #include "platform/geometry/FloatSize.h" | 34 #include "platform/geometry/FloatSize.h" |
| 35 #include "platform/geometry/IntRect.h" | 35 #include "platform/geometry/IntRect.h" |
| 36 #include "platform/graphics/Color.h" | 36 #include "platform/graphics/Color.h" |
| 37 #include "platform/graphics/ColorBehavior.h" |
| 37 #include "platform/graphics/CompositorElementId.h" | 38 #include "platform/graphics/CompositorElementId.h" |
| 38 #include "platform/graphics/ContentLayerDelegate.h" | 39 #include "platform/graphics/ContentLayerDelegate.h" |
| 39 #include "platform/graphics/GraphicsContext.h" | 40 #include "platform/graphics/GraphicsContext.h" |
| 40 #include "platform/graphics/GraphicsLayerClient.h" | 41 #include "platform/graphics/GraphicsLayerClient.h" |
| 41 #include "platform/graphics/GraphicsLayerDebugInfo.h" | 42 #include "platform/graphics/GraphicsLayerDebugInfo.h" |
| 42 #include "platform/graphics/ImageOrientation.h" | 43 #include "platform/graphics/ImageOrientation.h" |
| 43 #include "platform/graphics/PaintInvalidationReason.h" | 44 #include "platform/graphics/PaintInvalidationReason.h" |
| 44 #include "platform/graphics/paint/DisplayItemClient.h" | 45 #include "platform/graphics/paint/DisplayItemClient.h" |
| 45 #include "platform/graphics/paint/PaintController.h" | 46 #include "platform/graphics/paint/PaintController.h" |
| 46 #include "platform/heap/Handle.h" | 47 #include "platform/heap/Handle.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // DisplayItemClient methods | 280 // DisplayItemClient methods |
| 280 String debugName() const final { return m_client->debugName(this); } | 281 String debugName() const final { return m_client->debugName(this); } |
| 281 LayoutRect visualRect() const override; | 282 LayoutRect visualRect() const override; |
| 282 | 283 |
| 283 void setHasWillChangeTransformHint(bool); | 284 void setHasWillChangeTransformHint(bool); |
| 284 | 285 |
| 285 // See comments in cc::Layer::SetPreferredRasterBounds. | 286 // See comments in cc::Layer::SetPreferredRasterBounds. |
| 286 void setPreferredRasterBounds(const IntSize&); | 287 void setPreferredRasterBounds(const IntSize&); |
| 287 void clearPreferredRasterBounds(); | 288 void clearPreferredRasterBounds(); |
| 288 | 289 |
| 290 const ColorBehavior& colorBehavior() const { return m_colorBehavior; } |
| 291 |
| 289 protected: | 292 protected: |
| 290 String debugName(cc::Layer*) const; | 293 String debugName(cc::Layer*) const; |
| 291 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } | 294 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } |
| 292 | 295 |
| 293 explicit GraphicsLayer(GraphicsLayerClient*); | 296 explicit GraphicsLayer(GraphicsLayerClient*); |
| 294 // for testing | 297 // for testing |
| 295 friend class CompositedLayerMappingTest; | 298 friend class CompositedLayerMappingTest; |
| 296 friend class PaintControllerPaintTestBase; | 299 friend class PaintControllerPaintTestBase; |
| 297 | 300 |
| 298 private: | 301 private: |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 Vector<LinkHighlight*> m_linkHighlights; | 398 Vector<LinkHighlight*> m_linkHighlights; |
| 396 | 399 |
| 397 std::unique_ptr<ContentLayerDelegate> m_contentLayerDelegate; | 400 std::unique_ptr<ContentLayerDelegate> m_contentLayerDelegate; |
| 398 | 401 |
| 399 WeakPersistent<ScrollableArea> m_scrollableArea; | 402 WeakPersistent<ScrollableArea> m_scrollableArea; |
| 400 GraphicsLayerDebugInfo m_debugInfo; | 403 GraphicsLayerDebugInfo m_debugInfo; |
| 401 int m_renderingContext3d; | 404 int m_renderingContext3d; |
| 402 | 405 |
| 403 std::unique_ptr<PaintController> m_paintController; | 406 std::unique_ptr<PaintController> m_paintController; |
| 404 | 407 |
| 408 ColorBehavior m_colorBehavior; |
| 409 |
| 405 IntRect m_previousInterestRect; | 410 IntRect m_previousInterestRect; |
| 406 IntSize m_preferredRasterBounds; | 411 IntSize m_preferredRasterBounds; |
| 407 bool m_hasPreferredRasterBounds; | 412 bool m_hasPreferredRasterBounds; |
| 408 }; | 413 }; |
| 409 | 414 |
| 410 } // namespace blink | 415 } // namespace blink |
| 411 | 416 |
| 412 #ifndef NDEBUG | 417 #ifndef NDEBUG |
| 413 // Outside the blink namespace for ease of invocation from gdb. | 418 // Outside the blink namespace for ease of invocation from gdb. |
| 414 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 419 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 415 #endif | 420 #endif |
| 416 | 421 |
| 417 #endif // GraphicsLayer_h | 422 #endif // GraphicsLayer_h |
| OLD | NEW |