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