The new method can be used to check if the surface has a pending frame callback. CCBUG: 428499 (cherry picked from commit 798cfae3)