| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 void didScroll() override; | 240 void didScroll() override; |
| 240 | 241 |
| 241 // cc::LayerClient implementation. | 242 // cc::LayerClient implementation. |
| 242 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(c
c::Layer*) override; | 243 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(c
c::Layer*) override; |
| 243 | 244 |
| 244 PaintController& getPaintController(); | 245 PaintController& getPaintController(); |
| 245 | 246 |
| 246 // Exposed for tests. | 247 // Exposed for tests. |
| 247 WebLayer* contentsLayer() const { return m_contentsLayer; } | 248 WebLayer* contentsLayer() const { return m_contentsLayer; } |
| 248 | 249 |
| 249 void setElementId(uint64_t); | 250 void setElementId(const CompositorElementId&); |
| 250 void setCompositorMutableProperties(uint32_t); | 251 void setCompositorMutableProperties(uint32_t); |
| 251 | 252 |
| 252 static void setDrawDebugRedFillForTesting(bool); | 253 static void setDrawDebugRedFillForTesting(bool); |
| 253 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } | 254 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } |
| 254 | 255 |
| 255 // DisplayItemClient methods | 256 // DisplayItemClient methods |
| 256 String debugName() const final { return m_client->debugName(this); } | 257 String debugName() const final { return m_client->debugName(this); } |
| 257 LayoutRect visualRect() const override; | 258 LayoutRect visualRect() const override; |
| 258 | 259 |
| 259 void setHasWillChangeTransformHint(bool); | 260 void setHasWillChangeTransformHint(bool); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 }; | 382 }; |
| 382 | 383 |
| 383 } // namespace blink | 384 } // namespace blink |
| 384 | 385 |
| 385 #ifndef NDEBUG | 386 #ifndef NDEBUG |
| 386 // Outside the blink namespace for ease of invocation from gdb. | 387 // Outside the blink namespace for ease of invocation from gdb. |
| 387 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 388 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 388 #endif | 389 #endif |
| 389 | 390 |
| 390 #endif // GraphicsLayer_h | 391 #endif // GraphicsLayer_h |
| OLD | NEW |