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

Side by Side Diff: command_buffer/service/cross/gl/render_surface_gl.h

Issue 332036: move all O3D specific command buffer stuff to command_buffer::o3d... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 1 month 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 | Annotate | Revision Log
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 23 matching lines...) Expand all
34 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_RENDER_SURFACE_GL_H__ 34 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GL_RENDER_SURFACE_GL_H__
35 35
36 // This file contains the definition of the OpenGL versions of 36 // This file contains the definition of the OpenGL versions of
37 // render surface-related resource classes. 37 // render surface-related resource classes.
38 38
39 #include "command_buffer/service/cross/gl/texture_gl.h" 39 #include "command_buffer/service/cross/gl/texture_gl.h"
40 #include "command_buffer/service/cross/resource.h" 40 #include "command_buffer/service/cross/resource.h"
41 41
42 namespace o3d { 42 namespace o3d {
43 namespace command_buffer { 43 namespace command_buffer {
44 namespace o3d {
44 45
45 class RenderSurfaceGL : public RenderSurface { 46 class RenderSurfaceGL : public RenderSurface {
46 public: 47 public:
47 RenderSurfaceGL(int width, 48 RenderSurfaceGL(int width,
48 int height, 49 int height,
49 int mip_level, 50 int mip_level,
50 int side, 51 int side,
51 TextureGL *texture); 52 TextureGL *texture);
52 virtual ~RenderSurfaceGL() {} 53 virtual ~RenderSurfaceGL() {}
53 54
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 104 }
104 105
105 private: 106 private:
106 // Handles to the depth and stencil render-buffers, respectively. 107 // Handles to the depth and stencil render-buffers, respectively.
107 GLuint render_buffers_[2]; 108 GLuint render_buffers_[2];
108 unsigned int width_; 109 unsigned int width_;
109 unsigned int height_; 110 unsigned int height_;
110 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceGL); 111 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceGL);
111 }; 112 };
112 113
114 } // namespace o3d
113 } // namespace command_buffer 115 } // namespace command_buffer
114 } // namespace o3d 116 } // namespace o3d
115 117
116 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_GL_RENDER_SURFACE_GL_H__ 118 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_GL_RENDER_SURFACE_GL_H__
117 119
OLDNEW
« no previous file with comments | « command_buffer/service/cross/gl/geometry_gl.cc ('k') | command_buffer/service/cross/gl/render_surface_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698