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

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

Issue 1329553004: Add a FOUC painting test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix build. Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 PassRefPtr<JSONObject> layerTreeAsJSON(LayerTreeFlags, RenderingContextMap&) const; 213 PassRefPtr<JSONObject> layerTreeAsJSON(LayerTreeFlags, RenderingContextMap&) const;
214 214
215 int paintCount() const { return m_paintCount; } 215 int paintCount() const { return m_paintCount; }
216 216
217 // Return a string with a human readable form of the layer tree, If debug is true 217 // Return a string with a human readable form of the layer tree, If debug is true
218 // pointers for the layers and timing data will be included in the returned string. 218 // pointers for the layers and timing data will be included in the returned string.
219 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; 219 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const;
220 220
221 bool isTrackingPaintInvalidations() const { return m_client->isTrackingPaint Invalidations(); } 221 bool isTrackingPaintInvalidations() const { return m_client->isTrackingPaint Invalidations(); }
222 void resetTrackedPaintInvalidations(); 222 void resetTrackedPaintInvalidations();
223 bool hasTrackedPaintInvalidations() const;
223 void trackPaintInvalidationRect(const FloatRect&); 224 void trackPaintInvalidationRect(const FloatRect&);
224 void trackPaintInvalidationObject(const String&); 225 void trackPaintInvalidationObject(const String&);
225 226
226 void addLinkHighlight(LinkHighlight*); 227 void addLinkHighlight(LinkHighlight*);
227 void removeLinkHighlight(LinkHighlight*); 228 void removeLinkHighlight(LinkHighlight*);
228 // Exposed for tests 229 // Exposed for tests
229 unsigned numLinkHighlights() { return m_linkHighlights.size(); } 230 unsigned numLinkHighlights() { return m_linkHighlights.size(); }
230 LinkHighlight* linkHighlight(int i) { return m_linkHighlights[i]; } 231 LinkHighlight* linkHighlight(int i) { return m_linkHighlights[i]; }
231 232
232 void setScrollableArea(ScrollableArea*, bool isViewport); 233 void setScrollableArea(ScrollableArea*, bool isViewport);
(...skipping 12 matching lines...) Expand all
245 void notifyAnimationFinished(double monotonicTime, int group) override; 246 void notifyAnimationFinished(double monotonicTime, int group) override;
246 247
247 // WebLayerScrollClient implementation. 248 // WebLayerScrollClient implementation.
248 void didScroll() override; 249 void didScroll() override;
249 250
250 DisplayItemList* displayItemList() override; 251 DisplayItemList* displayItemList() override;
251 252
252 // Exposed for tests. 253 // Exposed for tests.
253 virtual WebLayer* contentsLayer() const { return m_contentsLayer; } 254 virtual WebLayer* contentsLayer() const { return m_contentsLayer; }
254 255
256 static void setDrawDebugRedFillForTesting(bool);
257 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont entLayerDelegate.get(); }
258
255 #ifndef NDEBUG 259 #ifndef NDEBUG
256 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } 260 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); }
257 String debugName() const { return m_client->debugName(this) + " debug red fi ll"; } 261 String debugName() const { return m_client->debugName(this) + " debug red fi ll"; }
258 #endif 262 #endif
259 263
260 protected: 264 protected:
261 String debugName(WebLayer*) const; 265 String debugName(WebLayer*) const;
262 266
263 explicit GraphicsLayer(GraphicsLayerClient*); 267 explicit GraphicsLayer(GraphicsLayerClient*);
264 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to be friends. 268 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to be friends.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 }; 365 };
362 366
363 } // namespace blink 367 } // namespace blink
364 368
365 #ifndef NDEBUG 369 #ifndef NDEBUG
366 // Outside the blink namespace for ease of invocation from gdb. 370 // Outside the blink namespace for ease of invocation from gdb.
367 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 371 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
368 #endif 372 #endif
369 373
370 #endif // GraphicsLayer_h 374 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698