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

Side by Side Diff: Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 23511004: mix-blend-mode implementation for accelerated layers - blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More tests Created 7 years, 1 month 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) 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 { CompositingReasonClipsCompositingDescendants, "clipsCompositingDescend ants" }, 278 { CompositingReasonClipsCompositingDescendants, "clipsCompositingDescend ants" },
279 { CompositingReasonPerspective, "perspective" }, 279 { CompositingReasonPerspective, "perspective" },
280 { CompositingReasonPreserve3D, "preserve3D" }, 280 { CompositingReasonPreserve3D, "preserve3D" },
281 { CompositingReasonRoot, "root" }, 281 { CompositingReasonRoot, "root" },
282 { CompositingReasonLayerForClip, "layerForClip" }, 282 { CompositingReasonLayerForClip, "layerForClip" },
283 { CompositingReasonLayerForScrollbar, "layerForScrollbar" }, 283 { CompositingReasonLayerForScrollbar, "layerForScrollbar" },
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 { CompositingReasonIsolateCompositedDescendants, "isolateCompositedDesce ndants" }
289 }; 290 };
290 291
291 const GraphicsLayer* graphicsLayer = layerById(errorString, layerId); 292 const GraphicsLayer* graphicsLayer = layerById(errorString, layerId);
292 if (!graphicsLayer) 293 if (!graphicsLayer)
293 return; 294 return;
294 blink::WebCompositingReasons reasonsBitmask = graphicsLayer->compositingReas ons(); 295 blink::WebCompositingReasons reasonsBitmask = graphicsLayer->compositingReas ons();
295 reasonStrings = TypeBuilder::Array<String>::create(); 296 reasonStrings = TypeBuilder::Array<String>::create();
296 for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonNames); ++i) { 297 for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonNames); ++i) {
297 if (!(reasonsBitmask & compositingReasonNames[i].mask)) 298 if (!(reasonsBitmask & compositingReasonNames[i].mask))
298 continue; 299 continue;
299 reasonStrings->addItem(compositingReasonNames[i].protocolName); 300 reasonStrings->addItem(compositingReasonNames[i].protocolName);
300 #ifndef _NDEBUG 301 #ifndef _NDEBUG
301 reasonsBitmask &= ~compositingReasonNames[i].mask; 302 reasonsBitmask &= ~compositingReasonNames[i].mask;
302 #endif 303 #endif
303 } 304 }
304 ASSERT(!reasonsBitmask); 305 ASSERT(!reasonsBitmask);
305 } 306 }
306 307
307 } // namespace WebCore 308 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698