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

Side by Side Diff: gpu/command_buffer/common/cmd_buffer_common.cc

Issue 298023004: [PPAPI] Compositor API implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor_api_def_new
Patch Set: Fix build issue on windowswq Created 6 years, 6 months 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the binary format definition of the command buffer and 5 // This file contains the binary format definition of the command buffer and
6 // command buffer commands. 6 // command buffer commands.
7 7
8 #include "gpu/command_buffer/common/cmd_buffer_common.h" 8 #include "gpu/command_buffer/common/cmd_buffer_common.h"
9 9
10 #include "gpu/command_buffer/common/command_buffer.h" 10 #include "gpu/command_buffer/common/command_buffer.h"
(...skipping 13 matching lines...) Expand all
24 24
25 #undef COMMON_COMMAND_BUFFER_CMD_OP 25 #undef COMMON_COMMAND_BUFFER_CMD_OP
26 }; 26 };
27 27
28 int id = static_cast<int>(command_id); 28 int id = static_cast<int>(command_id);
29 return (id >= 0 && id < kNumCommands) ? names[id] : "*unknown-command*"; 29 return (id >= 0 && id < kNumCommands) ? names[id] : "*unknown-command*";
30 } 30 }
31 31
32 } // namespace cmd 32 } // namespace cmd
33 33
34 #if !defined(NACL_WIN64)
34 // TODO(apatrick): this is a temporary optimization while skia is calling 35 // TODO(apatrick): this is a temporary optimization while skia is calling
35 // RendererGLContext::MakeCurrent prior to every GL call. It saves returning 6 36 // RendererGLContext::MakeCurrent prior to every GL call. It saves returning 6
36 // ints redundantly when only the error is needed for the CommandBufferProxy 37 // ints redundantly when only the error is needed for the CommandBufferProxy
37 // implementation. 38 // implementation.
38 error::Error CommandBuffer::GetLastError() { 39 error::Error CommandBuffer::GetLastError() {
39 return GetLastState().error; 40 return GetLastState().error;
40 } 41 }
42 #endif
41 43
42 } // namespace gpu 44 } // namespace gpu
43 45
44 46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698