Index: gpu/command_buffer/common/cmd_buffer_common.cc |
=================================================================== |
--- gpu/command_buffer/common/cmd_buffer_common.cc (revision 119905) |
+++ gpu/command_buffer/common/cmd_buffer_common.cc (working copy) |
@@ -31,6 +31,14 @@ |
} // namespace cmd |
+// 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; |
+} |
+ |
} // namespace gpu |