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 | 5 |
6 #ifndef CCRendererGL_h | 6 #ifndef CCRendererGL_h |
7 #define CCRendererGL_h | 7 #define CCRendererGL_h |
8 | 8 |
9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; | 80 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; |
81 virtual bool bindFramebufferToTexture(DrawingFrame&, const CCScopedTexture*,
const IntRect& framebufferRect) OVERRIDE; | 81 virtual bool bindFramebufferToTexture(DrawingFrame&, const CCScopedTexture*,
const IntRect& framebufferRect) OVERRIDE; |
82 virtual void setDrawViewportSize(const IntSize&) OVERRIDE; | 82 virtual void setDrawViewportSize(const IntSize&) OVERRIDE; |
83 virtual void enableScissorTestRect(const IntRect& scissorRect) OVERRIDE; | 83 virtual void enableScissorTestRect(const IntRect& scissorRect) OVERRIDE; |
84 virtual void disableScissorTest() OVERRIDE; | 84 virtual void disableScissorTest() OVERRIDE; |
85 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; | 85 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; |
86 virtual void drawQuad(DrawingFrame&, const CCDrawQuad*) OVERRIDE; | 86 virtual void drawQuad(DrawingFrame&, const CCDrawQuad*) OVERRIDE; |
87 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; | 87 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; |
88 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; | 88 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; |
| 89 virtual bool flippedFramebuffer() const OVERRIDE; |
89 | 90 |
90 private: | 91 private: |
91 static void toGLMatrix(float*, const WebKit::WebTransformationMatrix&); | 92 static void toGLMatrix(float*, const WebKit::WebTransformationMatrix&); |
92 | 93 |
93 void drawCheckerboardQuad(const DrawingFrame&, const CCCheckerboardDrawQuad*
); | 94 void drawCheckerboardQuad(const DrawingFrame&, const CCCheckerboardDrawQuad*
); |
94 void drawDebugBorderQuad(const DrawingFrame&, const CCDebugBorderDrawQuad*); | 95 void drawDebugBorderQuad(const DrawingFrame&, const CCDebugBorderDrawQuad*); |
95 PassOwnPtr<CCScopedTexture> drawBackgroundFilters(DrawingFrame&, const CCRen
derPassDrawQuad*, const WebKit::WebFilterOperations&, const WebKit::WebTransform
ationMatrix& deviceTransform); | 96 PassOwnPtr<CCScopedTexture> drawBackgroundFilters(DrawingFrame&, const CCRen
derPassDrawQuad*, const WebKit::WebFilterOperations&, const WebKit::WebTransform
ationMatrix& deviceTransform); |
96 void drawRenderPassQuad(DrawingFrame&, const CCRenderPassDrawQuad*); | 97 void drawRenderPassQuad(DrawingFrame&, const CCRenderPassDrawQuad*); |
97 void drawSolidColorQuad(const DrawingFrame&, const CCSolidColorDrawQuad*); | 98 void drawSolidColorQuad(const DrawingFrame&, const CCSolidColorDrawQuad*); |
98 void drawStreamVideoQuad(const DrawingFrame&, const CCStreamVideoDrawQuad*); | 99 void drawStreamVideoQuad(const DrawingFrame&, const CCStreamVideoDrawQuad*); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 #else | 229 #else |
229 #define GLC(context, x) (x) | 230 #define GLC(context, x) (x) |
230 #endif | 231 #endif |
231 | 232 |
232 | 233 |
233 } | 234 } |
234 | 235 |
235 #endif // USE(ACCELERATED_COMPOSITING) | 236 #endif // USE(ACCELERATED_COMPOSITING) |
236 | 237 |
237 #endif | 238 #endif |
OLD | NEW |