Chromium Code Reviews| 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 21 matching lines...) Expand all Loading... | |
| 32 #include "platform/geometry/FloatPoint3D.h" | 32 #include "platform/geometry/FloatPoint3D.h" |
| 33 #include "platform/geometry/FloatSize.h" | 33 #include "platform/geometry/FloatSize.h" |
| 34 #include "platform/geometry/IntRect.h" | 34 #include "platform/geometry/IntRect.h" |
| 35 #include "platform/graphics/Color.h" | 35 #include "platform/graphics/Color.h" |
| 36 #include "platform/graphics/ContentLayerDelegate.h" | 36 #include "platform/graphics/ContentLayerDelegate.h" |
| 37 #include "platform/graphics/GraphicsLayerClient.h" | 37 #include "platform/graphics/GraphicsLayerClient.h" |
| 38 #include "platform/graphics/GraphicsLayerDebugInfo.h" | 38 #include "platform/graphics/GraphicsLayerDebugInfo.h" |
| 39 #include "platform/graphics/PaintInvalidationReason.h" | 39 #include "platform/graphics/PaintInvalidationReason.h" |
| 40 #include "platform/graphics/filters/FilterOperations.h" | 40 #include "platform/graphics/filters/FilterOperations.h" |
| 41 #include "platform/graphics/paint/DisplayItemClient.h" | 41 #include "platform/graphics/paint/DisplayItemClient.h" |
| 42 #include "platform/graphics/paint/DisplayItemTransformTree.h" | |
| 42 #include "platform/transforms/TransformationMatrix.h" | 43 #include "platform/transforms/TransformationMatrix.h" |
| 43 #include "public/platform/WebCompositorAnimationDelegate.h" | 44 #include "public/platform/WebCompositorAnimationDelegate.h" |
| 44 #include "public/platform/WebContentLayer.h" | 45 #include "public/platform/WebContentLayer.h" |
| 45 #include "public/platform/WebImageLayer.h" | 46 #include "public/platform/WebImageLayer.h" |
| 46 #include "public/platform/WebLayerClient.h" | 47 #include "public/platform/WebLayerClient.h" |
| 47 #include "public/platform/WebLayerScrollClient.h" | 48 #include "public/platform/WebLayerScrollClient.h" |
| 48 #include "public/platform/WebScrollBlocksOn.h" | 49 #include "public/platform/WebScrollBlocksOn.h" |
| 49 #include "third_party/skia/include/core/SkPaint.h" | 50 #include "third_party/skia/include/core/SkPaint.h" |
| 50 #include "wtf/OwnPtr.h" | 51 #include "wtf/OwnPtr.h" |
| 51 #include "wtf/PassOwnPtr.h" | 52 #include "wtf/PassOwnPtr.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 241 | 242 |
| 242 // WebCompositorAnimationDelegate implementation. | 243 // WebCompositorAnimationDelegate implementation. |
| 243 void notifyAnimationStarted(double monotonicTime, int group) override; | 244 void notifyAnimationStarted(double monotonicTime, int group) override; |
| 244 void notifyAnimationFinished(double monotonicTime, int group) override; | 245 void notifyAnimationFinished(double monotonicTime, int group) override; |
| 245 | 246 |
| 246 // WebLayerScrollClient implementation. | 247 // WebLayerScrollClient implementation. |
| 247 void didScroll() override; | 248 void didScroll() override; |
| 248 | 249 |
| 249 DisplayItemList* displayItemList() override; | 250 DisplayItemList* displayItemList() override; |
| 250 | 251 |
| 252 void setTransformTree(PassOwnPtr<const DisplayItemTransformTree> transformTr ee) { m_transformTree = transformTree; } | |
|
chrishtr
2015/08/13 17:28:32
Revert changes to this class, per earlier comments
pdr.
2015/08/13 20:55:00
These changes are needed for test coverage until w
| |
| 253 const DisplayItemTransformTree* transformTree() const { return m_transformTr ee.get(); } | |
| 254 | |
| 251 // Exposed for tests. | 255 // Exposed for tests. |
| 252 virtual WebLayer* contentsLayer() const { return m_contentsLayer; } | 256 virtual WebLayer* contentsLayer() const { return m_contentsLayer; } |
| 253 | 257 |
| 254 #ifndef NDEBUG | 258 #ifndef NDEBUG |
| 255 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } | 259 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } |
| 256 String debugName() const { return m_client->debugName(this) + " debug red fi ll"; } | 260 String debugName() const { return m_client->debugName(this) + " debug red fi ll"; } |
| 257 #endif | 261 #endif |
| 258 | 262 |
| 259 protected: | 263 protected: |
| 260 String debugName(WebLayer*) const; | 264 String debugName(WebLayer*) const; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 350 | 354 |
| 351 Vector<LinkHighlight*> m_linkHighlights; | 355 Vector<LinkHighlight*> m_linkHighlights; |
| 352 | 356 |
| 353 OwnPtr<ContentLayerDelegate> m_contentLayerDelegate; | 357 OwnPtr<ContentLayerDelegate> m_contentLayerDelegate; |
| 354 | 358 |
| 355 ScrollableArea* m_scrollableArea; | 359 ScrollableArea* m_scrollableArea; |
| 356 GraphicsLayerDebugInfo m_debugInfo; | 360 GraphicsLayerDebugInfo m_debugInfo; |
| 357 int m_3dRenderingContext; | 361 int m_3dRenderingContext; |
| 358 | 362 |
| 359 OwnPtr<DisplayItemList> m_displayItemList; | 363 OwnPtr<DisplayItemList> m_displayItemList; |
| 364 | |
| 365 OwnPtr<const DisplayItemTransformTree> m_transformTree; | |
| 360 }; | 366 }; |
| 361 | 367 |
| 362 } // namespace blink | 368 } // namespace blink |
| 363 | 369 |
| 364 #ifndef NDEBUG | 370 #ifndef NDEBUG |
| 365 // Outside the blink namespace for ease of invocation from gdb. | 371 // Outside the blink namespace for ease of invocation from gdb. |
| 366 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 372 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 367 #endif | 373 #endif |
| 368 | 374 |
| 369 #endif // GraphicsLayer_h | 375 #endif // GraphicsLayer_h |
| OLD | NEW |