OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 /** | 407 /** |
408 * @override | 408 * @override |
409 * @param {function(!Array.<string>)} callback | 409 * @param {function(!Array.<string>)} callback |
410 */ | 410 */ |
411 requestCompositingReasons(callback) { | 411 requestCompositingReasons(callback) { |
412 if (!this._target) { | 412 if (!this._target) { |
413 callback([]); | 413 callback([]); |
414 return; | 414 return; |
415 } | 415 } |
416 | 416 |
417 var wrappedCallback = InspectorBackend.wrapClientCallback( | 417 var wrappedCallback = Protocol.inspectorBackend.wrapClientCallback( |
418 callback, 'Protocol.LayerTree.reasonsForCompositingLayer(): ', undefined
, []); | 418 callback, 'Protocol.LayerTree.reasonsForCompositingLayer(): ', undefined
, []); |
419 this._target.layerTreeAgent().compositingReasons(this.id(), wrappedCallback)
; | 419 this._target.layerTreeAgent().compositingReasons(this.id(), wrappedCallback)
; |
420 } | 420 } |
421 | 421 |
422 /** | 422 /** |
423 * @override | 423 * @override |
424 * @return {boolean} | 424 * @return {boolean} |
425 */ | 425 */ |
426 drawsContent() { | 426 drawsContent() { |
427 return this._layerPayload.drawsContent; | 427 return this._layerPayload.drawsContent; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 | 560 |
561 /** | 561 /** |
562 * @override | 562 * @override |
563 * @param {!Protocol.LayerTree.LayerId} layerId | 563 * @param {!Protocol.LayerTree.LayerId} layerId |
564 * @param {!Protocol.DOM.Rect} clipRect | 564 * @param {!Protocol.DOM.Rect} clipRect |
565 */ | 565 */ |
566 layerPainted(layerId, clipRect) { | 566 layerPainted(layerId, clipRect) { |
567 this._layerTreeModel._layerPainted(layerId, clipRect); | 567 this._layerTreeModel._layerPainted(layerId, clipRect); |
568 } | 568 } |
569 }; | 569 }; |
OLD | NEW |