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

Side by Side Diff: core/cross/gles2/render_surface_gles2.h

Issue 1741009: Pulled changes from issue 669220 to fix building with renderer=gles2. (Closed)
Patch Set: Created 10 years, 8 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
« no previous file with comments | « no previous file | core/cross/gles2/render_surface_gles2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | core/cross/gles2/render_surface_gles2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698