OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "gpu/pgl/command_buffer_pepper.h" | 5 #include "gpu/pgl/command_buffer_pepper.h" |
| 6 #ifdef __native_client__ |
| 7 #include <assert.h> |
| 8 #define NOTREACHED() assert(0) |
| 9 #else |
6 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #endif // __native_client__ |
7 | 12 |
8 using base::SharedMemory; | 13 using base::SharedMemory; |
9 using gpu::Buffer; | 14 using gpu::Buffer; |
10 | 15 |
11 CommandBufferPepper::CommandBufferPepper(NPP npp, | 16 CommandBufferPepper::CommandBufferPepper(NPP npp, |
12 NPDevice* device, | 17 NPDevice* device, |
13 NPDeviceContext3D* context) | 18 NPDeviceContext3D* context) |
14 : npp_(npp), | 19 : npp_(npp), |
15 device_(device), | 20 device_(device), |
16 context_(context) { | 21 context_(context) { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 return value != 0; | 149 return value != 0; |
145 } | 150 } |
146 | 151 |
147 return true; | 152 return true; |
148 } | 153 } |
149 | 154 |
150 void CommandBufferPepper::RaiseErrorStatus() { | 155 void CommandBufferPepper::RaiseErrorStatus() { |
151 // Not implemented by proxy. | 156 // Not implemented by proxy. |
152 NOTREACHED(); | 157 NOTREACHED(); |
153 } | 158 } |
OLD | NEW |