Lines Matching refs:slices

22    * Do not mutate the slices array directly. Modify it only by
27 * opt_sliceConstructor The constructor to use when creating slices.
35 this.slices = [];
43 * @return {Number} The number of slices in this group.
46 return this.slices.length;
50 * Helper function that pushes the provided slice onto the slices array.
51 * @param {Slice} slice The slice to be added to the slices array.
54 this.slices.push(slice);
59 * Helper function that pushes the provided slice onto the slices array.
60 * @param {Array.<Slice>} slices An array of slices to be added.
62 pushSlices: function(slices) {
63 this.slices.push.apply(this.slices, slices);
71 this.slices.push(instantEvent);
75 * Opens a new slice in the group's slices.
146 * Closes any open slices.
148 * slices. If not provided,
167 for (var sI = 0; sI < this.slices.length; sI++) {
168 var slice = this.slices[sI];
178 * Updates the bounds for this group based on the slices it contains.
182 for (var i = 0; i < this.slices.length; i++) {
183 this.bounds.addValue(this.slices[i].start);
184 this.bounds.addValue(this.slices[i].end);
206 * If the two groups do not nest properly some of the slices of groupB will
221 * This is handled by splitting the sys_write call into two slices as
227 * The colorId of both parts of the split slices are kept the same, and the
231 * SliceGroup will contain a copy of each of the input groups' slices (those
236 // order. The slices in each group are sorted by ascending end-time, so
243 // traversal we maintain a stack of currently "open" slices for each input
250 // split all of the currently open slices from groupB.
253 throw new Error('groupA has open partial slices');
256 throw new Error('groupB has open partial slices');
261 var slicesA = groupA.slices;
262 var slicesB = groupB.slices;
336 result.slices.reverse();