Home | History | Annotate | Download | only in tracks

Lines Matching full:slice

20    * A track that displays an array of Slice objects.
26 'slice-track', tracing.tracks.HeadingTrack);
43 this.classList.add('slice-track');
87 case tracing.tracks.DrawType.SLICE:
117 function(slice) { return slice.start + slice.duration; },
121 var slice = slices[i];
122 var x = slice.start;
127 var w = Math.max(slice.duration, 0.001);
128 var colorId = slice.selected ?
129 slice.colorId + highlightIdBoost :
130 slice.colorId;
134 if (slice.duration > 0) {
167 var slice = slices[i];
168 if (slice.start > viewRWorld)
171 if (slice.duration <= quickDiscardThresshold)
174 var title = slice.title +
175 (slice.didNotFinish ? ' (Did Not Finish)' : '');
180 this.labelWidthWorld(drawnTitle, pixWidth) > slice.duration) {
184 slice.duration);
189 if (drawnWidth * pixWidth < slice.duration) {
191 var cX = vp.xWorldToView(slice.start + 0.5 * slice.duration);
200 function onPickHit(slice) {
201 var hit = selection.addSlice(this, slice);
212 * Find the index for the given slice.
213 * @return {index} Index of the given slice, or undefined.
216 indexOfSlice_: function(slice) {
219 slice.start);
221 slice.start == this.slices_[index].start &&
222 slice.colorId != this.slices_[index].colorId) {
231 * @param {slice} The current slice.
239 if (!hit.slice)
242 var index = this.indexOfSlice_(hit.slice);
299 * @param {track} A slice track or other object that defines