| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. 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 are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 { CompositingReasonLayerForScrollingContainer, "layerForScrollingContain
er" }, | 284 { CompositingReasonLayerForScrollingContainer, "layerForScrollingContain
er" }, |
| 285 { CompositingReasonLayerForForeground, "layerForForeground" }, | 285 { CompositingReasonLayerForForeground, "layerForForeground" }, |
| 286 { CompositingReasonLayerForBackground, "layerForBackground" }, | 286 { CompositingReasonLayerForBackground, "layerForBackground" }, |
| 287 { CompositingReasonLayerForMask, "layerForMask" }, | 287 { CompositingReasonLayerForMask, "layerForMask" }, |
| 288 { CompositingReasonLayerForVideoOverlay, "layerForVideoOverlay" } | 288 { CompositingReasonLayerForVideoOverlay, "layerForVideoOverlay" } |
| 289 }; | 289 }; |
| 290 | 290 |
| 291 const GraphicsLayer* graphicsLayer = layerById(errorString, layerId); | 291 const GraphicsLayer* graphicsLayer = layerById(errorString, layerId); |
| 292 if (!graphicsLayer) | 292 if (!graphicsLayer) |
| 293 return; | 293 return; |
| 294 WebKit::WebCompositingReasons reasonsBitmask = graphicsLayer->compositingRea
sons(); | 294 blink::WebCompositingReasons reasonsBitmask = graphicsLayer->compositingReas
ons(); |
| 295 reasonStrings = TypeBuilder::Array<String>::create(); | 295 reasonStrings = TypeBuilder::Array<String>::create(); |
| 296 for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonNames); ++i) { | 296 for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonNames); ++i) { |
| 297 if (!(reasonsBitmask & compositingReasonNames[i].mask)) | 297 if (!(reasonsBitmask & compositingReasonNames[i].mask)) |
| 298 continue; | 298 continue; |
| 299 reasonStrings->addItem(compositingReasonNames[i].protocolName); | 299 reasonStrings->addItem(compositingReasonNames[i].protocolName); |
| 300 #ifndef _NDEBUG | 300 #ifndef _NDEBUG |
| 301 reasonsBitmask &= ~compositingReasonNames[i].mask; | 301 reasonsBitmask &= ~compositingReasonNames[i].mask; |
| 302 #endif | 302 #endif |
| 303 } | 303 } |
| 304 ASSERT(!reasonsBitmask); | 304 ASSERT(!reasonsBitmask); |
| 305 } | 305 } |
| 306 | 306 |
| 307 } // namespace WebCore | 307 } // namespace WebCore |
| OLD | NEW |