| 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_OUTPUT_GL_RENDERER_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_H_ |
| 6 #define CC_OUTPUT_GL_RENDERER_H_ | 6 #define CC_OUTPUT_GL_RENDERER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void DoDrawQuad(const class DrawQuad*, | 93 void DoDrawQuad(const class DrawQuad*, |
| 94 const gfx::QuadF* draw_region) override; | 94 const gfx::QuadF* draw_region) override; |
| 95 void BeginDrawingFrame() override; | 95 void BeginDrawingFrame() override; |
| 96 void FinishDrawingFrame() override; | 96 void FinishDrawingFrame() override; |
| 97 bool FlippedFramebuffer() const override; | 97 bool FlippedFramebuffer() const override; |
| 98 bool FlippedRootFramebuffer() const; | 98 bool FlippedRootFramebuffer() const; |
| 99 void EnsureScissorTestEnabled() override; | 99 void EnsureScissorTestEnabled() override; |
| 100 void EnsureScissorTestDisabled() override; | 100 void EnsureScissorTestDisabled() override; |
| 101 void CopyCurrentRenderPassToBitmap( | 101 void CopyCurrentRenderPassToBitmap( |
| 102 std::unique_ptr<CopyOutputRequest> request) override; | 102 std::unique_ptr<CopyOutputRequest> request) override; |
| 103 void SetEnableDCLayers(bool enable) override; |
| 103 void FinishDrawingQuadList() override; | 104 void FinishDrawingQuadList() override; |
| 104 | 105 |
| 105 // Returns true if quad requires antialiasing and false otherwise. | 106 // Returns true if quad requires antialiasing and false otherwise. |
| 106 static bool ShouldAntialiasQuad(const gfx::QuadF& device_layer_quad, | 107 static bool ShouldAntialiasQuad(const gfx::QuadF& device_layer_quad, |
| 107 bool clipped, | 108 bool clipped, |
| 108 bool force_aa); | 109 bool force_aa); |
| 109 | 110 |
| 110 // Inflate the quad and fill edge array for fragment shader. | 111 // Inflate the quad and fill edge array for fragment shader. |
| 111 // |local_quad| is set to inflated quad. |edge| array is filled with | 112 // |local_quad| is set to inflated quad. |edge| array is filled with |
| 112 // inflated quad's edge data. | 113 // inflated quad's edge data. |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 gfx::Size offscreen_stencil_renderbuffer_size_; | 363 gfx::Size offscreen_stencil_renderbuffer_size_; |
| 363 | 364 |
| 364 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; | 365 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; |
| 365 | 366 |
| 366 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 367 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 367 }; | 368 }; |
| 368 | 369 |
| 369 } // namespace cc | 370 } // namespace cc |
| 370 | 371 |
| 371 #endif // CC_OUTPUT_GL_RENDERER_H_ | 372 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |