Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3155)

Unified Diff: content/renderer/pepper/ppb_graphics_3d_impl.cc

Issue 2550583002: gpu: Thread-safe command buffer state lookup. (Closed)
Patch Set: jbauman's review Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/ppb_graphics_3d_impl.cc
diff --git a/content/renderer/pepper/ppb_graphics_3d_impl.cc b/content/renderer/pepper/ppb_graphics_3d_impl.cc
index 6db7f7b3b65253fcd6fa61748dae2686b282d6e7..3cd4671be0e7910aa5b824c14d0cfafedad6c1d9 100644
--- a/content/renderer/pepper/ppb_graphics_3d_impl.cc
+++ b/content/renderer/pepper/ppb_graphics_3d_impl.cc
@@ -117,15 +117,13 @@ PP_Bool PPB_Graphics3D_Impl::Flush(int32_t put_offset) {
gpu::CommandBuffer::State PPB_Graphics3D_Impl::WaitForTokenInRange(
int32_t start,
int32_t end) {
- GetCommandBuffer()->WaitForTokenInRange(start, end);
- return GetCommandBuffer()->GetLastState();
+ return GetCommandBuffer()->WaitForTokenInRange(start, end);
}
gpu::CommandBuffer::State PPB_Graphics3D_Impl::WaitForGetOffsetInRange(
int32_t start,
int32_t end) {
- GetCommandBuffer()->WaitForGetOffsetInRange(start, end);
- return GetCommandBuffer()->GetLastState();
+ return GetCommandBuffer()->WaitForGetOffsetInRange(start, end);
}
void PPB_Graphics3D_Impl::EnsureWorkVisible() {
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | gpu/command_buffer/client/client_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698