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

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: removed a failing reftest dependent on render-compositor bindings Created 7 years 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 { CompositingReasonClipsCompositingDescendants, "clipsCompositingDescend ants" }, 274 { CompositingReasonClipsCompositingDescendants, "clipsCompositingDescend ants" },
275 { CompositingReasonPerspective, "perspective" }, 275 { CompositingReasonPerspective, "perspective" },
276 { CompositingReasonPreserve3D, "preserve3D" }, 276 { CompositingReasonPreserve3D, "preserve3D" },
277 { CompositingReasonRoot, "root" }, 277 { CompositingReasonRoot, "root" },
278 { CompositingReasonLayerForClip, "layerForClip" }, 278 { CompositingReasonLayerForClip, "layerForClip" },
279 { CompositingReasonLayerForScrollbar, "layerForScrollbar" }, 279 { CompositingReasonLayerForScrollbar, "layerForScrollbar" },
280 { CompositingReasonLayerForScrollingContainer, "layerForScrollingContain er" }, 280 { CompositingReasonLayerForScrollingContainer, "layerForScrollingContain er" },
281 { CompositingReasonLayerForForeground, "layerForForeground" }, 281 { CompositingReasonLayerForForeground, "layerForForeground" },
282 { CompositingReasonLayerForBackground, "layerForBackground" }, 282 { CompositingReasonLayerForBackground, "layerForBackground" },
283 { CompositingReasonLayerForMask, "layerForMask" }, 283 { CompositingReasonLayerForMask, "layerForMask" },
284 { CompositingReasonLayerForVideoOverlay, "layerForVideoOverlay" } 284 { CompositingReasonLayerForVideoOverlay, "layerForVideoOverlay" },
285 { CompositingReasonIsolateCompositedDescendants, "isolateCompositedDesce ndants" }
285 }; 286 };
286 287
287 const GraphicsLayer* graphicsLayer = layerById(errorString, layerId); 288 const GraphicsLayer* graphicsLayer = layerById(errorString, layerId);
288 if (!graphicsLayer) 289 if (!graphicsLayer)
289 return; 290 return;
290 blink::WebCompositingReasons reasonsBitmask = graphicsLayer->compositingReas ons(); 291 blink::WebCompositingReasons reasonsBitmask = graphicsLayer->compositingReas ons();
291 reasonStrings = TypeBuilder::Array<String>::create(); 292 reasonStrings = TypeBuilder::Array<String>::create();
292 for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonNames); ++i) { 293 for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonNames); ++i) {
293 if (!(reasonsBitmask & compositingReasonNames[i].mask)) 294 if (!(reasonsBitmask & compositingReasonNames[i].mask))
294 continue; 295 continue;
295 reasonStrings->addItem(compositingReasonNames[i].protocolName); 296 reasonStrings->addItem(compositingReasonNames[i].protocolName);
296 #ifndef _NDEBUG 297 #ifndef _NDEBUG
297 reasonsBitmask &= ~compositingReasonNames[i].mask; 298 reasonsBitmask &= ~compositingReasonNames[i].mask;
298 #endif 299 #endif
299 } 300 }
300 ASSERT(!reasonsBitmask); 301 ASSERT(!reasonsBitmask);
301 } 302 }
302 303
303 } // namespace WebCore 304 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/css3/compositing/mix-blend-mode-multiply.html ('k') | Source/core/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698