示例#1
0
        private void DrawNativeProfilerTimeline(Rect threadRect, int frameIndex, int threadIndex, float timeOffset, bool ghost)
        {
            bool flag = this.m_SelectedEntry.threadId == threadIndex && this.m_SelectedEntry.frameId == frameIndex;
            NativeProfilerTimeline_DrawArgs nativeProfilerTimeline_DrawArgs = default(NativeProfilerTimeline_DrawArgs);

            nativeProfilerTimeline_DrawArgs.Reset();
            nativeProfilerTimeline_DrawArgs.frameIndex           = frameIndex;
            nativeProfilerTimeline_DrawArgs.threadIndex          = threadIndex;
            nativeProfilerTimeline_DrawArgs.timeOffset           = timeOffset;
            nativeProfilerTimeline_DrawArgs.threadRect           = threadRect;
            nativeProfilerTimeline_DrawArgs.shownAreaRect        = this.m_TimeArea.shownArea;
            nativeProfilerTimeline_DrawArgs.selectedEntryIndex   = ((!flag) ? -1 : this.m_SelectedEntry.nativeIndex);
            nativeProfilerTimeline_DrawArgs.mousedOverEntryIndex = -1;
            NativeProfilerTimeline.Draw(ref nativeProfilerTimeline_DrawArgs);
        }
示例#2
0
        void DrawNativeProfilerTimeline(Rect threadRect, int frameIndex, int threadIndex, float timeOffset, bool ghost)
        {
            bool hasSelection = m_SelectedEntry.threadId == threadIndex && m_SelectedEntry.frameId == frameIndex;

            NativeProfilerTimeline_DrawArgs drawArgs = new NativeProfilerTimeline_DrawArgs();

            drawArgs.Reset();
            drawArgs.frameIndex           = frameIndex;
            drawArgs.threadIndex          = threadIndex;
            drawArgs.timeOffset           = timeOffset;
            drawArgs.threadRect           = threadRect;
            drawArgs.shownAreaRect        = m_TimeArea.shownArea;
            drawArgs.selectedEntryIndex   = hasSelection ? m_SelectedEntry.nativeIndex : -1;
            drawArgs.mousedOverEntryIndex = -1;

            NativeProfilerTimeline.Draw(ref drawArgs);
        }
示例#3
0
 public static extern void Draw(ref NativeProfilerTimeline_DrawArgs args);