|
Remove RequestAnimationFrame from mojo, add delayed tasks to RunLoop
Having a RequestAnimationFrame API on CommandBuffer makes no sense - the
context itself has nothing to do with scheduling and may not even be
swapping onscreen. The spinning cube app was using this API as a way to
get delayed tasks without depending on base - basically
posttask-via-mojo-message. This adds basic delayed task support to the
public RunLoop and uses that instead. This only supports posting tasks
from the thread that owns the runloop. We can expand as needed. The mojo
RunLoop attempts to interleave delayed tasks with handle handlers, like
base's MessageLoop.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285560
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+146 lines, -145 lines) |
Patch |
 |
M |
mojo/apps/js/bindings/gl/context.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/cc/context_provider_mojo.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/examples/pepper_container_app/graphics_3d_resource.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/examples/pepper_container_app/graphics_3d_resource.cc
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/examples/sample_app/gles2_client_impl.h
|
View
|
1
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/examples/sample_app/gles2_client_impl.cc
|
View
|
1
|
7 chunks |
+36 lines, -34 lines |
1 comment
|
Download
|
 |
M |
mojo/gles2/command_buffer_client_impl.h
|
View
|
1
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/gles2/command_buffer_client_impl.cc
|
View
|
1
|
3 chunks |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
mojo/gles2/gles2_context.h
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/gles2/gles2_context.cc
|
View
|
|
2 chunks |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
mojo/gles2/gles2_support_impl.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/gles2/gles2_support_impl.cc
|
View
|
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
mojo/public/c/gles2/gles2.h
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/public/c/gles2/gles2_types.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/callback.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/callback.h.pump
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/utility/DEPS
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/utility/lib/run_loop.cc
|
View
|
1
|
5 chunks |
+50 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/utility/run_loop.h
|
View
|
1
|
4 chunks |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/utility/tests/run_loop_unittest.cc
|
View
|
1
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/gles2/gles2_private.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/public/gles2/gles2_private.cc
|
View
|
|
2 chunks |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
mojo/services/gles2/command_buffer.mojom
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
mojo/services/gles2/command_buffer_impl.h
|
View
|
1
|
3 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/services/gles2/command_buffer_impl.cc
|
View
|
1
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|