OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void viewportChanged(); | 101 void viewportChanged(); |
102 | 102 |
103 void beginDrawingFrame(); | 103 void beginDrawingFrame(); |
104 void drawRenderPass(const CCRenderPass*); | 104 void drawRenderPass(const CCRenderPass*); |
105 void finishDrawingFrame(); | 105 void finishDrawingFrame(); |
106 | 106 |
107 // waits for rendering to finish | 107 // waits for rendering to finish |
108 void finish(); | 108 void finish(); |
109 | 109 |
110 // puts backbuffer onscreen | 110 // puts backbuffer onscreen |
111 void swapBuffers(const IntRect& subBuffer); | 111 bool swapBuffers(const IntRect& subBuffer); |
112 | 112 |
113 static void debugGLCall(GraphicsContext3D*, const char* command, const char*
file, int line); | 113 static void debugGLCall(GraphicsContext3D*, const char* command, const char*
file, int line); |
114 | 114 |
115 const TransformationMatrix& projectionMatrix() const { return m_projectionMa
trix; } | 115 const TransformationMatrix& projectionMatrix() const { return m_projectionMa
trix; } |
116 const TransformationMatrix& windowMatrix() const { return m_windowMatrix; } | 116 const TransformationMatrix& windowMatrix() const { return m_windowMatrix; } |
117 | 117 |
118 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(
); } | 118 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(
); } |
119 const FloatQuad& sharedGeometryQuad() const { return m_sharedGeometryQuad; } | 119 const FloatQuad& sharedGeometryQuad() const { return m_sharedGeometryQuad; } |
120 const LayerChromium::BorderProgram* borderProgram(); | 120 const LayerChromium::BorderProgram* borderProgram(); |
121 const CCHeadsUpDisplay::Program* headsUpDisplayProgram(); | 121 const CCHeadsUpDisplay::Program* headsUpDisplayProgram(); |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 #else | 304 #else |
305 #define GLC(context, x) (x) | 305 #define GLC(context, x) (x) |
306 #endif | 306 #endif |
307 | 307 |
308 | 308 |
309 } | 309 } |
310 | 310 |
311 #endif // USE(ACCELERATED_COMPOSITING) | 311 #endif // USE(ACCELERATED_COMPOSITING) |
312 | 312 |
313 #endif | 313 #endif |
OLD | NEW |