| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/platform/graphics/FloatSize.h" | 35 #include "core/platform/graphics/FloatSize.h" |
| 36 #include "core/platform/graphics/GraphicsLayerClient.h" | 36 #include "core/platform/graphics/GraphicsLayerClient.h" |
| 37 #include "core/platform/graphics/IntRect.h" | 37 #include "core/platform/graphics/IntRect.h" |
| 38 #include "core/platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate
.h" | 38 #include "core/platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate
.h" |
| 39 #include "core/platform/graphics/filters/FilterOperations.h" | 39 #include "core/platform/graphics/filters/FilterOperations.h" |
| 40 #include "core/platform/graphics/transforms/TransformationMatrix.h" | 40 #include "core/platform/graphics/transforms/TransformationMatrix.h" |
| 41 | 41 |
| 42 #include "wtf/HashMap.h" | 42 #include "wtf/HashMap.h" |
| 43 #include "wtf/OwnPtr.h" | 43 #include "wtf/OwnPtr.h" |
| 44 #include "wtf/PassOwnPtr.h" | 44 #include "wtf/PassOwnPtr.h" |
| 45 #include "wtf/Vector.h" |
| 45 | 46 |
| 46 #include "public/platform/WebAnimationDelegate.h" | 47 #include "public/platform/WebAnimationDelegate.h" |
| 47 #include "public/platform/WebCompositingReasons.h" | 48 #include "public/platform/WebCompositingReasons.h" |
| 48 #include "public/platform/WebContentLayer.h" | 49 #include "public/platform/WebContentLayer.h" |
| 49 #include "public/platform/WebImageLayer.h" | 50 #include "public/platform/WebImageLayer.h" |
| 50 #include "public/platform/WebLayerClient.h" | 51 #include "public/platform/WebLayerClient.h" |
| 51 #include "public/platform/WebLayerScrollClient.h" | 52 #include "public/platform/WebLayerScrollClient.h" |
| 52 #include "public/platform/WebNinePatchLayer.h" | 53 #include "public/platform/WebNinePatchLayer.h" |
| 53 #include "public/platform/WebSolidColorLayer.h" | 54 #include "public/platform/WebSolidColorLayer.h" |
| 54 | 55 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 double backingStoreMemoryEstimate() const; | 282 double backingStoreMemoryEstimate() const; |
| 282 | 283 |
| 283 void resetTrackedRepaints(); | 284 void resetTrackedRepaints(); |
| 284 void addRepaintRect(const FloatRect&); | 285 void addRepaintRect(const FloatRect&); |
| 285 | 286 |
| 286 static bool supportsBackgroundColorContent() | 287 static bool supportsBackgroundColorContent() |
| 287 { | 288 { |
| 288 return false; | 289 return false; |
| 289 } | 290 } |
| 290 | 291 |
| 291 void setLinkHighlight(LinkHighlightClient*); | 292 void addLinkHighlight(LinkHighlightClient*); |
| 293 void removeLinkHighlight(LinkHighlightClient*); |
| 292 // Exposed for tests | 294 // Exposed for tests |
| 293 LinkHighlightClient* linkHighlight() { return m_linkHighlight; } | 295 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
| 296 LinkHighlightClient* linkHighlight(int i) { return m_linkHighlights[i]; } |
| 294 | 297 |
| 295 void setScrollableArea(ScrollableArea*, bool isMainFrame); | 298 void setScrollableArea(ScrollableArea*, bool isMainFrame); |
| 296 ScrollableArea* scrollableArea() const { return m_scrollableArea; } | 299 ScrollableArea* scrollableArea() const { return m_scrollableArea; } |
| 297 | 300 |
| 298 WebKit::WebContentLayer* contentLayer() const { return m_layer.get(); } | 301 WebKit::WebContentLayer* contentLayer() const { return m_layer.get(); } |
| 299 | 302 |
| 300 // Exposed for tests. FIXME - name is too similar to contentLayer(), very er
ror prone. | 303 // Exposed for tests. FIXME - name is too similar to contentLayer(), very er
ror prone. |
| 301 WebKit::WebLayer* contentsLayer() const { return m_contentsLayer; } | 304 WebKit::WebLayer* contentsLayer() const { return m_contentsLayer; } |
| 302 | 305 |
| 303 static void registerContentsLayer(WebKit::WebLayer*); | 306 static void registerContentsLayer(WebKit::WebLayer*); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 OwnPtr<WebKit::WebContentLayer> m_layer; | 397 OwnPtr<WebKit::WebContentLayer> m_layer; |
| 395 OwnPtr<WebKit::WebImageLayer> m_imageLayer; | 398 OwnPtr<WebKit::WebImageLayer> m_imageLayer; |
| 396 OwnPtr<WebKit::WebNinePatchLayer> m_ninePatchLayer; | 399 OwnPtr<WebKit::WebNinePatchLayer> m_ninePatchLayer; |
| 397 WebKit::WebLayer* m_contentsLayer; | 400 WebKit::WebLayer* m_contentsLayer; |
| 398 // We don't have ownership of m_contentsLayer, but we do want to know if a g
iven layer is the | 401 // We don't have ownership of m_contentsLayer, but we do want to know if a g
iven layer is the |
| 399 // same as our current layer in setContentsTo(). Since m_contentsLayer may b
e deleted at this point, | 402 // same as our current layer in setContentsTo(). Since m_contentsLayer may b
e deleted at this point, |
| 400 // we stash an ID away when we know m_contentsLayer is alive and use that fo
r comparisons from that point | 403 // we stash an ID away when we know m_contentsLayer is alive and use that fo
r comparisons from that point |
| 401 // on. | 404 // on. |
| 402 int m_contentsLayerId; | 405 int m_contentsLayerId; |
| 403 | 406 |
| 404 LinkHighlightClient* m_linkHighlight; | 407 Vector<LinkHighlightClient*> m_linkHighlights; |
| 405 | 408 |
| 406 OwnPtr<OpaqueRectTrackingContentLayerDelegate> m_opaqueRectTrackingContentLa
yerDelegate; | 409 OwnPtr<OpaqueRectTrackingContentLayerDelegate> m_opaqueRectTrackingContentLa
yerDelegate; |
| 407 | 410 |
| 408 ContentsLayerPurpose m_contentsLayerPurpose; | 411 ContentsLayerPurpose m_contentsLayerPurpose; |
| 409 | 412 |
| 410 typedef HashMap<String, int> AnimationIdMap; | 413 typedef HashMap<String, int> AnimationIdMap; |
| 411 AnimationIdMap m_animationIdMap; | 414 AnimationIdMap m_animationIdMap; |
| 412 | 415 |
| 413 ScrollableArea* m_scrollableArea; | 416 ScrollableArea* m_scrollableArea; |
| 414 WebKit::WebCompositingReasons m_compositingReasons; | 417 WebKit::WebCompositingReasons m_compositingReasons; |
| 415 }; | 418 }; |
| 416 | 419 |
| 417 | 420 |
| 418 } // namespace WebCore | 421 } // namespace WebCore |
| 419 | 422 |
| 420 #ifndef NDEBUG | 423 #ifndef NDEBUG |
| 421 // Outside the WebCore namespace for ease of invocation from gdb. | 424 // Outside the WebCore namespace for ease of invocation from gdb. |
| 422 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 425 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
| 423 #endif | 426 #endif |
| 424 | 427 |
| 425 #endif // GraphicsLayer_h | 428 #endif // GraphicsLayer_h |
| OLD | NEW |