| 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 |
| 11 #include "base/cancelable_callback.h" | 11 #include "base/cancelable_callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "cc/base/cc_export.h" | 13 #include "cc/base/cc_export.h" |
| 14 #include "cc/output/color_lut_cache.h" | 14 #include "cc/output/color_lut_cache.h" |
| 15 #include "cc/output/direct_renderer.h" | 15 #include "cc/output/direct_renderer.h" |
| 16 #include "cc/output/gl_renderer_draw_cache.h" | 16 #include "cc/output/gl_renderer_draw_cache.h" |
| 17 #include "cc/output/program_binding.h" | 17 #include "cc/output/program_binding.h" |
| 18 #include "cc/output/renderer_capabilities_impl.h" | 18 #include "cc/output/renderer_capabilities_impl.h" |
| 19 #include "cc/quads/debug_border_draw_quad.h" | 19 #include "cc/quads/debug_border_draw_quad.h" |
| 20 #include "cc/quads/render_pass_draw_quad.h" | 20 #include "cc/quads/render_pass_draw_quad.h" |
| 21 #include "cc/quads/solid_color_draw_quad.h" | 21 #include "cc/quads/solid_color_draw_quad.h" |
| 22 #include "cc/quads/tile_draw_quad.h" | 22 #include "cc/quads/tile_draw_quad.h" |
| 23 #include "cc/quads/yuv_video_draw_quad.h" | 23 #include "cc/quads/yuv_video_draw_quad.h" |
| 24 #include "gpu/command_buffer/client/context_support.h" |
| 24 #include "ui/gfx/geometry/quad_f.h" | 25 #include "ui/gfx/geometry/quad_f.h" |
| 25 | 26 |
| 26 class SkBitmap; | 27 class SkBitmap; |
| 27 | 28 |
| 28 namespace gpu { | 29 namespace gpu { |
| 29 namespace gles2 { | 30 namespace gles2 { |
| 30 class GLES2Interface; | 31 class GLES2Interface; |
| 31 } | 32 } |
| 32 } | 33 } |
| 33 | 34 |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 | 538 |
| 538 // The method FlippedFramebuffer determines whether the framebuffer associated | 539 // The method FlippedFramebuffer determines whether the framebuffer associated |
| 539 // with a DrawingFrame is flipped. It makes the assumption that the | 540 // with a DrawingFrame is flipped. It makes the assumption that the |
| 540 // DrawingFrame is being used as part of a render pass. If a DrawingFrame is | 541 // DrawingFrame is being used as part of a render pass. If a DrawingFrame is |
| 541 // not being used as part of a render pass, setting it here forces | 542 // not being used as part of a render pass, setting it here forces |
| 542 // FlippedFramebuffer to return |true|. | 543 // FlippedFramebuffer to return |true|. |
| 543 bool force_drawing_frame_framebuffer_unflipped_ = false; | 544 bool force_drawing_frame_framebuffer_unflipped_ = false; |
| 544 | 545 |
| 545 BoundGeometry bound_geometry_; | 546 BoundGeometry bound_geometry_; |
| 546 ColorLUTCache color_lut_cache_; | 547 ColorLUTCache color_lut_cache_; |
| 548 |
| 549 std::unique_ptr<gpu::ContextSupport::ScopedVisibility> |
| 550 context_client_visibility_; |
| 547 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 551 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 548 }; | 552 }; |
| 549 | 553 |
| 550 } // namespace cc | 554 } // namespace cc |
| 551 | 555 |
| 552 #endif // CC_OUTPUT_GL_RENDERER_H_ | 556 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |