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/PaintInvalidationReason.h" | 43 #include "platform/graphics/PaintInvalidationReason.h" |
44 #include "platform/graphics/filters/FilterOperations.h" | 44 #include "platform/graphics/filters/FilterOperations.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 "public/platform/WebContentLayer.h" | 49 #include "public/platform/WebContentLayer.h" |
50 #include "public/platform/WebImageLayer.h" | 50 #include "public/platform/WebImageLayer.h" |
51 #include "public/platform/WebLayerScrollClient.h" | 51 #include "public/platform/WebLayerScrollClient.h" |
52 #include "third_party/skia/include/core/SkFilterQuality.h" | 52 #include "third_party/skia/include/core/SkFilterQuality.h" |
| 53 #include "third_party/skia/include/core/SkRefCnt.h" |
53 #include "wtf/Vector.h" | 54 #include "wtf/Vector.h" |
54 #include <memory> | 55 #include <memory> |
55 | 56 |
56 namespace blink { | 57 namespace blink { |
57 | 58 |
58 class FloatRect; | 59 class FloatRect; |
59 class Image; | 60 class Image; |
60 class LinkHighlight; | 61 class LinkHighlight; |
61 class JSONObject; | 62 class JSONObject; |
62 class PaintController; | 63 class PaintController; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 void updateContentsRect(); | 288 void updateContentsRect(); |
288 | 289 |
289 void setContentsTo(WebLayer*); | 290 void setContentsTo(WebLayer*); |
290 void setupContentsLayer(WebLayer*); | 291 void setupContentsLayer(WebLayer*); |
291 void clearContentsLayerIfUnregistered(); | 292 void clearContentsLayerIfUnregistered(); |
292 WebLayer* contentsLayerIfRegistered(); | 293 WebLayer* contentsLayerIfRegistered(); |
293 | 294 |
294 typedef HashMap<int, int> RenderingContextMap; | 295 typedef HashMap<int, int> RenderingContextMap; |
295 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin
gContextMap&) const; | 296 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin
gContextMap&) const; |
296 | 297 |
297 PassRefPtr<SkPicture> capturePicture(); | 298 sk_sp<SkPicture> capturePicture(); |
298 void checkPaintUnderInvalidations(const SkPicture&); | 299 void checkPaintUnderInvalidations(const SkPicture&); |
299 | 300 |
300 GraphicsLayerClient* m_client; | 301 GraphicsLayerClient* m_client; |
301 | 302 |
302 // Offset from the owning layoutObject | 303 // Offset from the owning layoutObject |
303 DoubleSize m_offsetFromLayoutObject; | 304 DoubleSize m_offsetFromLayoutObject; |
304 | 305 |
305 // Position is relative to the parent GraphicsLayer | 306 // Position is relative to the parent GraphicsLayer |
306 FloatPoint m_position; | 307 FloatPoint m_position; |
307 FloatSize m_size; | 308 FloatSize m_size; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 }; | 372 }; |
372 | 373 |
373 } // namespace blink | 374 } // namespace blink |
374 | 375 |
375 #ifndef NDEBUG | 376 #ifndef NDEBUG |
376 // Outside the blink namespace for ease of invocation from gdb. | 377 // Outside the blink namespace for ease of invocation from gdb. |
377 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 378 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
378 #endif | 379 #endif |
379 | 380 |
380 #endif // GraphicsLayer_h | 381 #endif // GraphicsLayer_h |
OLD | NEW |