| 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/CompositorElementId.h" |
| 37 #include "platform/graphics/ContentLayerDelegate.h" | 38 #include "platform/graphics/ContentLayerDelegate.h" |
| 38 #include "platform/graphics/GraphicsContext.h" | 39 #include "platform/graphics/GraphicsContext.h" |
| 39 #include "platform/graphics/GraphicsLayerClient.h" | 40 #include "platform/graphics/GraphicsLayerClient.h" |
| 40 #include "platform/graphics/GraphicsLayerDebugInfo.h" | 41 #include "platform/graphics/GraphicsLayerDebugInfo.h" |
| 41 #include "platform/graphics/ImageOrientation.h" | 42 #include "platform/graphics/ImageOrientation.h" |
| 42 #include "platform/graphics/PaintInvalidationReason.h" | 43 #include "platform/graphics/PaintInvalidationReason.h" |
| 43 #include "platform/graphics/filters/FilterOperations.h" | 44 #include "platform/graphics/filters/FilterOperations.h" |
| 44 #include "platform/graphics/paint/CachedDisplayItem.h" | 45 #include "platform/graphics/paint/CachedDisplayItem.h" |
| 45 #include "platform/graphics/paint/DisplayItemClient.h" | 46 #include "platform/graphics/paint/DisplayItemClient.h" |
| 46 #include "platform/graphics/paint/PaintController.h" | 47 #include "platform/graphics/paint/PaintController.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 void didScroll() override; | 235 void didScroll() override; |
| 235 | 236 |
| 236 // cc::LayerClient implementation. | 237 // cc::LayerClient implementation. |
| 237 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(c
c::Layer*) override; | 238 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(c
c::Layer*) override; |
| 238 | 239 |
| 239 PaintController& getPaintController(); | 240 PaintController& getPaintController(); |
| 240 | 241 |
| 241 // Exposed for tests. | 242 // Exposed for tests. |
| 242 WebLayer* contentsLayer() const { return m_contentsLayer; } | 243 WebLayer* contentsLayer() const { return m_contentsLayer; } |
| 243 | 244 |
| 244 void setElementId(uint64_t); | 245 void setElementId(CompositorElementId); |
| 245 void setCompositorMutableProperties(uint32_t); | 246 void setCompositorMutableProperties(uint32_t); |
| 246 | 247 |
| 247 static void setDrawDebugRedFillForTesting(bool); | 248 static void setDrawDebugRedFillForTesting(bool); |
| 248 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } | 249 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } |
| 249 | 250 |
| 250 // DisplayItemClient methods | 251 // DisplayItemClient methods |
| 251 String debugName() const final { return m_client->debugName(this); } | 252 String debugName() const final { return m_client->debugName(this); } |
| 252 LayoutRect visualRect() const override; | 253 LayoutRect visualRect() const override; |
| 253 | 254 |
| 254 protected: | 255 protected: |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 }; | 365 }; |
| 365 | 366 |
| 366 } // namespace blink | 367 } // namespace blink |
| 367 | 368 |
| 368 #ifndef NDEBUG | 369 #ifndef NDEBUG |
| 369 // Outside the blink namespace for ease of invocation from gdb. | 370 // Outside the blink namespace for ease of invocation from gdb. |
| 370 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 371 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 371 #endif | 372 #endif |
| 372 | 373 |
| 373 #endif // GraphicsLayer_h | 374 #endif // GraphicsLayer_h |
| OLD | NEW |