Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

Issue 2144303002: Made layout viewport scroll updates from compositor work like ordinary layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rootScrollerOnCompositor
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void resetTrackedPaintInvalidations(); 218 void resetTrackedPaintInvalidations();
219 bool hasTrackedPaintInvalidations() const; 219 bool hasTrackedPaintInvalidations() const;
220 void trackPaintInvalidation(const DisplayItemClient&, const IntRect&, PaintI nvalidationReason); 220 void trackPaintInvalidation(const DisplayItemClient&, const IntRect&, PaintI nvalidationReason);
221 221
222 void addLinkHighlight(LinkHighlight*); 222 void addLinkHighlight(LinkHighlight*);
223 void removeLinkHighlight(LinkHighlight*); 223 void removeLinkHighlight(LinkHighlight*);
224 // Exposed for tests 224 // Exposed for tests
225 unsigned numLinkHighlights() { return m_linkHighlights.size(); } 225 unsigned numLinkHighlights() { return m_linkHighlights.size(); }
226 LinkHighlight* getLinkHighlight(int i) { return m_linkHighlights[i]; } 226 LinkHighlight* getLinkHighlight(int i) { return m_linkHighlights[i]; }
227 227
228 void setScrollableArea(ScrollableArea*, bool isViewport); 228 void setScrollableArea(ScrollableArea*, bool isVisualViewport);
229 ScrollableArea* getScrollableArea() const { return m_scrollableArea; } 229 ScrollableArea* getScrollableArea() const { return m_scrollableArea; }
230 230
231 WebContentLayer* contentLayer() const { return m_layer.get(); } 231 WebContentLayer* contentLayer() const { return m_layer.get(); }
232 232
233 static void registerContentsLayer(WebLayer*); 233 static void registerContentsLayer(WebLayer*);
234 static void unregisterContentsLayer(WebLayer*); 234 static void unregisterContentsLayer(WebLayer*);
235 235
236 IntRect interestRect(); 236 IntRect interestRect();
237 void paint(const IntRect* interestRect, GraphicsContext::DisabledMode = Grap hicsContext::NothingDisabled); 237 void paint(const IntRect* interestRect, GraphicsContext::DisabledMode = Grap hicsContext::NothingDisabled);
238 238
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 }; 380 };
381 381
382 } // namespace blink 382 } // namespace blink
383 383
384 #ifndef NDEBUG 384 #ifndef NDEBUG
385 // Outside the blink namespace for ease of invocation from gdb. 385 // Outside the blink namespace for ease of invocation from gdb.
386 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 386 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
387 #endif 387 #endif
388 388
389 #endif // GraphicsLayer_h 389 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698