| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_GL_RENDERER_H_ | 5 #ifndef CC_GL_RENDERER_H_ |
| 6 #define CC_GL_RENDERER_H_ | 6 #define CC_GL_RENDERER_H_ |
| 7 | 7 |
| 8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
| 9 #include "cc/checkerboard_draw_quad.h" | 9 #include "cc/checkerboard_draw_quad.h" |
| 10 #include "cc/debug_border_draw_quad.h" | 10 #include "cc/debug_border_draw_quad.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 virtual void finishDrawingQuadList() OVERRIDE; | 88 virtual void finishDrawingQuadList() OVERRIDE; |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 static void toGLMatrix(float*, const gfx::Transform&); | 91 static void toGLMatrix(float*, const gfx::Transform&); |
| 92 static int priorityCutoffValue(WebKit::WebGraphicsMemoryAllocation::Priority
Cutoff); | 92 static int priorityCutoffValue(WebKit::WebGraphicsMemoryAllocation::Priority
Cutoff); |
| 93 | 93 |
| 94 void drawCheckerboardQuad(const DrawingFrame&, const CheckerboardDrawQuad*); | 94 void drawCheckerboardQuad(const DrawingFrame&, const CheckerboardDrawQuad*); |
| 95 void drawDebugBorderQuad(const DrawingFrame&, const DebugBorderDrawQuad*); | 95 void drawDebugBorderQuad(const DrawingFrame&, const DebugBorderDrawQuad*); |
| 96 scoped_ptr<ScopedResource> drawBackgroundFilters( | 96 scoped_ptr<ScopedResource> drawBackgroundFilters( |
| 97 DrawingFrame&, const RenderPassDrawQuad*, | 97 DrawingFrame&, const RenderPassDrawQuad*, |
| 98 const WebKit::WebFilterOperations&, | |
| 99 const gfx::Transform& contentsDeviceTransform, | 98 const gfx::Transform& contentsDeviceTransform, |
| 100 const gfx::Transform& contentsDeviceTransformInverse); | 99 const gfx::Transform& contentsDeviceTransformInverse); |
| 101 void drawRenderPassQuad(DrawingFrame&, const RenderPassDrawQuad*); | 100 void drawRenderPassQuad(DrawingFrame&, const RenderPassDrawQuad*); |
| 102 void drawSolidColorQuad(const DrawingFrame&, const SolidColorDrawQuad*); | 101 void drawSolidColorQuad(const DrawingFrame&, const SolidColorDrawQuad*); |
| 103 void drawStreamVideoQuad(const DrawingFrame&, const StreamVideoDrawQuad*); | 102 void drawStreamVideoQuad(const DrawingFrame&, const StreamVideoDrawQuad*); |
| 104 void drawTextureQuad(const DrawingFrame&, const TextureDrawQuad*); | 103 void drawTextureQuad(const DrawingFrame&, const TextureDrawQuad*); |
| 105 void enqueueTextureQuad(const DrawingFrame&, const TextureDrawQuad*); | 104 void enqueueTextureQuad(const DrawingFrame&, const TextureDrawQuad*); |
| 106 void flushTextureQuadCache(); | 105 void flushTextureQuadCache(); |
| 107 void drawIOSurfaceQuad(const DrawingFrame&, const IOSurfaceDrawQuad*); | 106 void drawIOSurfaceQuad(const DrawingFrame&, const IOSurfaceDrawQuad*); |
| 108 void drawTileQuad(const DrawingFrame&, const TileDrawQuad*); | 107 void drawTileQuad(const DrawingFrame&, const TileDrawQuad*); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 243 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 245 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) | 244 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) |
| 246 #else | 245 #else |
| 247 #define GLC(context, x) (x) | 246 #define GLC(context, x) (x) |
| 248 #endif | 247 #endif |
| 249 | 248 |
| 250 | 249 |
| 251 } | 250 } |
| 252 | 251 |
| 253 #endif // CC_GL_RENDERER_H_ | 252 #endif // CC_GL_RENDERER_H_ |
| OLD | NEW |