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 201 matching lines...) Loading... |
212 bool isTrackingPaintInvalidations() const { return m_client->isTrackingPaint
Invalidations(); } | 212 bool isTrackingPaintInvalidations() const { return m_client->isTrackingPaint
Invalidations(); } |
213 void resetTrackedPaintInvalidations(); | 213 void resetTrackedPaintInvalidations(); |
214 bool hasTrackedPaintInvalidations() const; | 214 bool hasTrackedPaintInvalidations() const; |
215 void trackPaintInvalidationRect(const FloatRect&); | 215 void trackPaintInvalidationRect(const FloatRect&); |
216 void trackPaintInvalidationObject(const String&); | 216 void trackPaintInvalidationObject(const String&); |
217 | 217 |
218 void addLinkHighlight(LinkHighlight*); | 218 void addLinkHighlight(LinkHighlight*); |
219 void removeLinkHighlight(LinkHighlight*); | 219 void removeLinkHighlight(LinkHighlight*); |
220 // Exposed for tests | 220 // Exposed for tests |
221 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 221 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
222 LinkHighlight* linkHighlight(int i) { return m_linkHighlights[i]; } | 222 LinkHighlight* getLinkHighlight(int i) { return m_linkHighlights[i]; } |
223 | 223 |
224 void setScrollableArea(ScrollableArea*, bool isViewport); | 224 void setScrollableArea(ScrollableArea*, bool isViewport); |
225 ScrollableArea* scrollableArea() const { return m_scrollableArea; } | 225 ScrollableArea* getScrollableArea() const { return m_scrollableArea; } |
226 | 226 |
227 WebContentLayer* contentLayer() const { return m_layer.get(); } | 227 WebContentLayer* contentLayer() const { return m_layer.get(); } |
228 | 228 |
229 static void registerContentsLayer(WebLayer*); | 229 static void registerContentsLayer(WebLayer*); |
230 static void unregisterContentsLayer(WebLayer*); | 230 static void unregisterContentsLayer(WebLayer*); |
231 | 231 |
232 IntRect interestRect(); | 232 IntRect interestRect(); |
233 void paint(const IntRect* interestRect, GraphicsContext::DisabledMode = Grap
hicsContext::NothingDisabled); | 233 void paint(const IntRect* interestRect, GraphicsContext::DisabledMode = Grap
hicsContext::NothingDisabled); |
234 | 234 |
235 // WebLayerScrollClient implementation. | 235 // WebLayerScrollClient implementation. |
236 void didScroll() override; | 236 void didScroll() override; |
237 | 237 |
238 // cc::LayerClient implementation. | 238 // cc::LayerClient implementation. |
239 scoped_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(cc::La
yer*) override; | 239 scoped_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(cc::La
yer*) override; |
240 | 240 |
241 PaintController& paintController(); | 241 PaintController& getPaintController(); |
242 | 242 |
243 // Exposed for tests. | 243 // Exposed for tests. |
244 WebLayer* contentsLayer() const { return m_contentsLayer; } | 244 WebLayer* contentsLayer() const { return m_contentsLayer; } |
245 | 245 |
246 void setElementId(uint64_t); | 246 void setElementId(uint64_t); |
247 void setCompositorMutableProperties(uint32_t); | 247 void setCompositorMutableProperties(uint32_t); |
248 | 248 |
249 static void setDrawDebugRedFillForTesting(bool); | 249 static void setDrawDebugRedFillForTesting(bool); |
250 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } | 250 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont
entLayerDelegate.get(); } |
251 | 251 |
(...skipping 115 matching lines...) Loading... |
367 }; | 367 }; |
368 | 368 |
369 } // namespace blink | 369 } // namespace blink |
370 | 370 |
371 #ifndef NDEBUG | 371 #ifndef NDEBUG |
372 // Outside the blink namespace for ease of invocation from gdb. | 372 // Outside the blink namespace for ease of invocation from gdb. |
373 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 373 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
374 #endif | 374 #endif |
375 | 375 |
376 #endif // GraphicsLayer_h | 376 #endif // GraphicsLayer_h |
OLD | NEW |