| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 return true; | 177 return true; |
| 178 } | 178 } |
| 179 | 179 |
| 180 // Adds the CLEAR command to the command buffer. | 180 // Adds the CLEAR command to the command buffer. |
| 181 void RendererCB::PlatformSpecificClear(const Float4 &color, | 181 void RendererCB::PlatformSpecificClear(const Float4 &color, |
| 182 bool color_flag, | 182 bool color_flag, |
| 183 float depth, | 183 float depth, |
| 184 bool depth_flag, | 184 bool depth_flag, |
| 185 int stencil, | 185 int stencil, |
| 186 bool stencil_flag) { | 186 bool stencil_flag) { |
| 187 uint32 buffers = (color_flag ? GAPIInterface::COLOR : 0) | | 187 uint32 buffers = (color_flag ? command_buffer::kColor : 0) | |
| 188 (depth_flag ? GAPIInterface::DEPTH : 0) | | 188 (depth_flag ? command_buffer::kDepth : 0) | |
| 189 (stencil_flag ? GAPIInterface::STENCIL : 0); | 189 (stencil_flag ? command_buffer::kStencil : 0); |
| 190 helper_->Clear(buffers, color[0], color[1], color[2], color[3], | 190 helper_->Clear(buffers, color[0], color[1], color[2], color[3], |
| 191 depth, stencil); | 191 depth, stencil); |
| 192 } | 192 } |
| 193 | 193 |
| 194 void RendererCB::PlatformSpecificEndDraw() { | 194 void RendererCB::PlatformSpecificEndDraw() { |
| 195 } | 195 } |
| 196 | 196 |
| 197 // Adds the BeginFrame command to the command buffer. | 197 // Adds the BeginFrame command to the command buffer. |
| 198 bool RendererCB::PlatformSpecificStartRendering() { | 198 bool RendererCB::PlatformSpecificStartRendering() { |
| 199 // Any device issues are handled in the command buffer backend | 199 // Any device issues are handled in the command buffer backend |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 RenderDepthStencilSurface::Ref RendererCB::CreateDepthStencilSurface( | 324 RenderDepthStencilSurface::Ref RendererCB::CreateDepthStencilSurface( |
| 325 int width, | 325 int width, |
| 326 int height) { | 326 int height) { |
| 327 return RenderDepthStencilSurface::Ref( | 327 return RenderDepthStencilSurface::Ref( |
| 328 new RenderDepthStencilSurfaceCB(service_locator(), | 328 new RenderDepthStencilSurfaceCB(service_locator(), |
| 329 width, | 329 width, |
| 330 height, | 330 height, |
| 331 this)); | 331 this)); |
| 332 } | 332 } |
| 333 } // namespace o3d | 333 } // namespace o3d |
| OLD | NEW |