| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 DCHECK(false); | 83 DCHECK(false); |
| 84 return Bitmap::Ref(); | 84 return Bitmap::Ref(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 // Destroys any data structures associated with the render surface and | 87 // Destroys any data structures associated with the render surface and |
| 88 // resets any allocated IDs. This function should never be called during | 88 // resets any allocated IDs. This function should never be called during |
| 89 // rendering. | 89 // rendering. |
| 90 virtual void Destroy(); | 90 virtual void Destroy(); |
| 91 | 91 |
| 92 // Returns the render surface resource ID. | 92 // Returns the render surface resource ID. |
| 93 command_buffer::ResourceID resource_id() const { return resource_id_; } | 93 command_buffer::ResourceId resource_id() const { return resource_id_; } |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 command_buffer::ResourceID resource_id_; | 96 command_buffer::ResourceId resource_id_; |
| 97 RendererCB *renderer_; | 97 RendererCB *renderer_; |
| 98 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceCB); | 98 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceCB); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 // The RenderDepthStencilSurfaceCB class represents a depth stencil surface in | 101 // The RenderDepthStencilSurfaceCB class represents a depth stencil surface in |
| 102 // the core library of the client for command buffers. This class is | 102 // the core library of the client for command buffers. This class is |
| 103 // responsible for sending calls across the command buffer to create an actual | 103 // responsible for sending calls across the command buffer to create an actual |
| 104 // depth stencil surface resource on the server. | 104 // depth stencil surface resource on the server. |
| 105 class RenderDepthStencilSurfaceCB : public RenderDepthStencilSurface { | 105 class RenderDepthStencilSurfaceCB : public RenderDepthStencilSurface { |
| 106 public: | 106 public: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 120 int height, | 120 int height, |
| 121 RendererCB *renderer); | 121 RendererCB *renderer); |
| 122 virtual ~RenderDepthStencilSurfaceCB() {} | 122 virtual ~RenderDepthStencilSurfaceCB() {} |
| 123 | 123 |
| 124 // Destroys any data structures associated with the render surface and | 124 // Destroys any data structures associated with the render surface and |
| 125 // resets any allocated IDs. This function should never be called during | 125 // resets any allocated IDs. This function should never be called during |
| 126 // rendering. | 126 // rendering. |
| 127 virtual void Destroy(); | 127 virtual void Destroy(); |
| 128 | 128 |
| 129 // Returns the render depth stencil surface resource ID. | 129 // Returns the render depth stencil surface resource ID. |
| 130 command_buffer::ResourceID resource_id() const { return resource_id_; } | 130 command_buffer::ResourceId resource_id() const { return resource_id_; } |
| 131 | 131 |
| 132 private: | 132 private: |
| 133 command_buffer::ResourceID resource_id_; | 133 command_buffer::ResourceId resource_id_; |
| 134 RendererCB *renderer_; | 134 RendererCB *renderer_; |
| 135 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceCB); | 135 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceCB); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace o3d | 138 } // namespace o3d |
| 139 | 139 |
| 140 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_RENDER_SURFACE_CB_H_ | 140 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_RENDER_SURFACE_CB_H_ |
| 141 | 141 |
| OLD | NEW |