| OLD | NEW |
| 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 2014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2025 void CompositedLayerMapping::paintContents(const GraphicsLayer* graphicsLayer, G
raphicsContext& context, GraphicsLayerPaintingPhase graphicsLayerPaintingPhase,
const IntRect& clip) | 2025 void CompositedLayerMapping::paintContents(const GraphicsLayer* graphicsLayer, G
raphicsContext& context, GraphicsLayerPaintingPhase graphicsLayerPaintingPhase,
const IntRect& clip) |
| 2026 { | 2026 { |
| 2027 // https://code.google.com/p/chromium/issues/detail?id=343772 | 2027 // https://code.google.com/p/chromium/issues/detail?id=343772 |
| 2028 DisableCompositingQueryAsserts disabler; | 2028 DisableCompositingQueryAsserts disabler; |
| 2029 #if ENABLE(ASSERT) | 2029 #if ENABLE(ASSERT) |
| 2030 // FIXME: once the state machine is ready, this can be removed and we can re
fer to that instead. | 2030 // FIXME: once the state machine is ready, this can be removed and we can re
fer to that instead. |
| 2031 if (Page* page = renderer()->frame()->page()) | 2031 if (Page* page = renderer()->frame()->page()) |
| 2032 page->setIsPainting(true); | 2032 page->setIsPainting(true); |
| 2033 #endif | 2033 #endif |
| 2034 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Paint", "data"
, InspectorPaintEvent::data(m_owningLayer.renderer(), clip, graphicsLayer)); | 2034 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Paint", "data"
, InspectorPaintEvent::data(m_owningLayer.renderer(), clip, graphicsLayer)); |
| 2035 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.stack"), "
CallStack", "stack", InspectorCallStackEvent::currentCallStack()); | 2035 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.stack"), "
CallStack", TRACE_EVENT_SCOPE_PROCESS, "stack", InspectorCallStackEvent::current
CallStack()); |
| 2036 | 2036 |
| 2037 PaintLayerFlags paintLayerFlags = 0; | 2037 PaintLayerFlags paintLayerFlags = 0; |
| 2038 if (graphicsLayerPaintingPhase & GraphicsLayerPaintBackground) | 2038 if (graphicsLayerPaintingPhase & GraphicsLayerPaintBackground) |
| 2039 paintLayerFlags |= PaintLayerPaintingCompositingBackgroundPhase; | 2039 paintLayerFlags |= PaintLayerPaintingCompositingBackgroundPhase; |
| 2040 if (graphicsLayerPaintingPhase & GraphicsLayerPaintForeground) | 2040 if (graphicsLayerPaintingPhase & GraphicsLayerPaintForeground) |
| 2041 paintLayerFlags |= PaintLayerPaintingCompositingForegroundPhase; | 2041 paintLayerFlags |= PaintLayerPaintingCompositingForegroundPhase; |
| 2042 if (graphicsLayerPaintingPhase & GraphicsLayerPaintMask) | 2042 if (graphicsLayerPaintingPhase & GraphicsLayerPaintMask) |
| 2043 paintLayerFlags |= PaintLayerPaintingCompositingMaskPhase; | 2043 paintLayerFlags |= PaintLayerPaintingCompositingMaskPhase; |
| 2044 if (graphicsLayerPaintingPhase & GraphicsLayerPaintChildClippingMask) | 2044 if (graphicsLayerPaintingPhase & GraphicsLayerPaintChildClippingMask) |
| 2045 paintLayerFlags |= PaintLayerPaintingChildClippingMaskPhase; | 2045 paintLayerFlags |= PaintLayerPaintingChildClippingMaskPhase; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2210 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { | 2210 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { |
| 2211 name = "Scrolling Block Selection Layer"; | 2211 name = "Scrolling Block Selection Layer"; |
| 2212 } else { | 2212 } else { |
| 2213 ASSERT_NOT_REACHED(); | 2213 ASSERT_NOT_REACHED(); |
| 2214 } | 2214 } |
| 2215 | 2215 |
| 2216 return name; | 2216 return name; |
| 2217 } | 2217 } |
| 2218 | 2218 |
| 2219 } // namespace blink | 2219 } // namespace blink |
| OLD | NEW |