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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 GLenum cube_face() const { | 68 GLenum cube_face() const { |
69 return cube_face_; | 69 return cube_face_; |
70 } | 70 } |
71 | 71 |
72 int mip_level() const { | 72 int mip_level() const { |
73 return mip_level_; | 73 return mip_level_; |
74 } | 74 } |
75 | 75 |
76 protected: | 76 protected: |
77 // The platform specific part of GetBitmap. | 77 // The platform specific part of GetIntoBitmap. |
78 virtual Bitmap::Ref PlatformSpecificGetBitmap() const; | 78 virtual bool PlatformSpecificGetIntoBitmap(Bitmap::Ref bitmap) const; |
79 | 79 |
80 private: | 80 private: |
81 GLenum cube_face_; | 81 GLenum cube_face_; |
82 int mip_level_; | 82 int mip_level_; |
83 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceGLES2); | 83 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceGLES2); |
84 }; | 84 }; |
85 | 85 |
86 class RenderDepthStencilSurfaceGLES2 : public RenderDepthStencilSurface { | 86 class RenderDepthStencilSurfaceGLES2 : public RenderDepthStencilSurface { |
87 public: | 87 public: |
88 typedef SmartPointer<RenderDepthStencilSurfaceGLES2> Ref; | 88 typedef SmartPointer<RenderDepthStencilSurfaceGLES2> Ref; |
(...skipping 13 matching lines...) Expand all Loading... |
102 private: | 102 private: |
103 // Handles to the depth and stencil render-buffers, respectively. | 103 // Handles to the depth and stencil render-buffers, respectively. |
104 GLuint render_buffers_[2]; | 104 GLuint render_buffers_[2]; |
105 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceGLES2); | 105 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceGLES2); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace o3d | 108 } // namespace o3d |
109 | 109 |
110 #endif // O3D_CORE_CROSS_GLES2_RENDER_SURFACE_GLES2_H_ | 110 #endif // O3D_CORE_CROSS_GLES2_RENDER_SURFACE_GLES2_H_ |
111 | 111 |
OLD | NEW |