markGpuBegin method

  1. @override
void markGpuBegin(
  1. dynamic _
)
override

Marks the beginning of GPU work.

Implementation

@override
void markGpuBegin(dynamic _) {
  final q = _alloc();
  if (q == null) return; // No free query this frame.
  gl.glBeginQuery(angle.GL_TIME_ELAPSED_EXT, q);
  _inFlight.addLast(q);
  _beganThisFrame = true;
}