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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; | 84 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; |
85 virtual bool bindFramebufferToTexture(DrawingFrame&, const CCScopedTexture*,
const IntRect& framebufferRect) OVERRIDE; | 85 virtual bool bindFramebufferToTexture(DrawingFrame&, const CCScopedTexture*,
const IntRect& framebufferRect) OVERRIDE; |
86 virtual void setDrawViewportSize(const IntSize&) OVERRIDE; | 86 virtual void setDrawViewportSize(const IntSize&) OVERRIDE; |
87 virtual void enableScissorTestRect(const IntRect& scissorRect) OVERRIDE; | 87 virtual void enableScissorTestRect(const IntRect& scissorRect) OVERRIDE; |
88 virtual void disableScissorTest() OVERRIDE; | 88 virtual void disableScissorTest() OVERRIDE; |
89 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; | 89 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; |
90 virtual void drawQuad(DrawingFrame&, const CCDrawQuad*) OVERRIDE; | 90 virtual void drawQuad(DrawingFrame&, const CCDrawQuad*) OVERRIDE; |
91 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; | 91 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; |
92 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; | 92 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; |
| 93 virtual bool flippedFramebuffer() const OVERRIDE { return true; } |
93 | 94 |
94 private: | 95 private: |
95 static void toGLMatrix(float*, const WebKit::WebTransformationMatrix&); | 96 static void toGLMatrix(float*, const WebKit::WebTransformationMatrix&); |
96 | 97 |
97 void drawCheckerboardQuad(const DrawingFrame&, const CCCheckerboardDrawQuad*
); | 98 void drawCheckerboardQuad(const DrawingFrame&, const CCCheckerboardDrawQuad*
); |
98 void drawDebugBorderQuad(const DrawingFrame&, const CCDebugBorderDrawQuad*); | 99 void drawDebugBorderQuad(const DrawingFrame&, const CCDebugBorderDrawQuad*); |
99 PassOwnPtr<CCScopedTexture> drawBackgroundFilters(DrawingFrame&, const CCRen
derPassDrawQuad*, const WebKit::WebFilterOperations&, const WebKit::WebTransform
ationMatrix& deviceTransform); | 100 PassOwnPtr<CCScopedTexture> drawBackgroundFilters(DrawingFrame&, const CCRen
derPassDrawQuad*, const WebKit::WebFilterOperations&, const WebKit::WebTransform
ationMatrix& deviceTransform); |
100 void drawRenderPassQuad(DrawingFrame&, const CCRenderPassDrawQuad*); | 101 void drawRenderPassQuad(DrawingFrame&, const CCRenderPassDrawQuad*); |
101 void drawSolidColorQuad(const DrawingFrame&, const CCSolidColorDrawQuad*); | 102 void drawSolidColorQuad(const DrawingFrame&, const CCSolidColorDrawQuad*); |
102 void drawStreamVideoQuad(const DrawingFrame&, const CCStreamVideoDrawQuad*); | 103 void drawStreamVideoQuad(const DrawingFrame&, const CCStreamVideoDrawQuad*); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 #else | 237 #else |
237 #define GLC(context, x) (x) | 238 #define GLC(context, x) (x) |
238 #endif | 239 #endif |
239 | 240 |
240 | 241 |
241 } | 242 } |
242 | 243 |
243 #endif // USE(ACCELERATED_COMPOSITING) | 244 #endif // USE(ACCELERATED_COMPOSITING) |
244 | 245 |
245 #endif | 246 #endif |
OLD | NEW |