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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2380683006: SPv2: Add support for tracking raster paint invalidations in testing. (Closed)
Patch Set: none Created 4 years, 2 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, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 2562 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 pictureBuilder.endRecording()->playback(context.canvas()); 2573 pictureBuilder.endRecording()->playback(context.canvas());
2574 } 2574 }
2575 2575
2576 bool CompositedLayerMapping::isScrollableAreaLayer(const GraphicsLayer* graphics Layer) const 2576 bool CompositedLayerMapping::isScrollableAreaLayer(const GraphicsLayer* graphics Layer) const
2577 { 2577 {
2578 return graphicsLayer == layerForHorizontalScrollbar() 2578 return graphicsLayer == layerForHorizontalScrollbar()
2579 || graphicsLayer == layerForVerticalScrollbar() 2579 || graphicsLayer == layerForVerticalScrollbar()
2580 || graphicsLayer == layerForScrollCorner(); 2580 || graphicsLayer == layerForScrollCorner();
2581 } 2581 }
2582 2582
2583 bool CompositedLayerMapping::isTrackingPaintInvalidations() const 2583 bool CompositedLayerMapping::isTrackingRasterInvalidations() const
2584 { 2584 {
2585 GraphicsLayerClient* client = compositor(); 2585 GraphicsLayerClient* client = compositor();
2586 return client ? client->isTrackingPaintInvalidations() : false; 2586 return client ? client->isTrackingRasterInvalidations() : false;
2587 } 2587 }
2588 2588
2589 #if ENABLE(ASSERT) 2589 #if ENABLE(ASSERT)
2590 void CompositedLayerMapping::verifyNotPainting() 2590 void CompositedLayerMapping::verifyNotPainting()
2591 { 2591 {
2592 ASSERT(!layoutObject()->frame()->page() || !layoutObject()->frame()->page()- >isPainting()); 2592 ASSERT(!layoutObject()->frame()->page() || !layoutObject()->frame()->page()- >isPainting());
2593 } 2593 }
2594 #endif 2594 #endif
2595 2595
2596 void CompositedLayerMapping::notifyPaint(bool isFirstPaint, bool textPainted, bo ol imagePainted) 2596 void CompositedLayerMapping::notifyPaint(bool isFirstPaint, bool textPainted, bo ol imagePainted)
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2734 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2734 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2735 name = "Scrolling Contents Layer"; 2735 name = "Scrolling Contents Layer";
2736 } else { 2736 } else {
2737 ASSERT_NOT_REACHED(); 2737 ASSERT_NOT_REACHED();
2738 } 2738 }
2739 2739
2740 return name; 2740 return name;
2741 } 2741 }
2742 2742
2743 } // namespace blink 2743 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698