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

Unified Diff: gpu/command_buffer/common/cmd_buffer_common.cc

Issue 2550583002: gpu: Thread-safe command buffer state lookup. (Closed)
Patch Set: move cmd buffer helper memory dump to context provider 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: gpu/command_buffer/common/cmd_buffer_common.cc
diff --git a/gpu/command_buffer/common/cmd_buffer_common.cc b/gpu/command_buffer/common/cmd_buffer_common.cc
index c9f4b164eeec9df8dee745525c4db976963ed7e1..bdb08f32cb968d25eac7eeb91c97750325b1f39a 100644
--- a/gpu/command_buffer/common/cmd_buffer_common.cc
+++ b/gpu/command_buffer/common/cmd_buffer_common.cc
@@ -32,17 +32,6 @@ const char* GetCommandName(CommandId command_id) {
}
} // namespace cmd
-
-#if !defined(NACL_WIN64)
-// TODO(apatrick): this is a temporary optimization while skia is calling
-// RendererGLContext::MakeCurrent prior to every GL call. It saves returning 6
-// ints redundantly when only the error is needed for the CommandBufferProxy
-// implementation.
-error::Error CommandBuffer::GetLastError() {
- return GetLastState().error;
-}
-#endif
-
} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698