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/context_cache_controller.h" | 15 #include "cc/output/context_cache_controller.h" |
16 #include "cc/output/direct_renderer.h" | 16 #include "cc/output/direct_renderer.h" |
17 #include "cc/output/gl_renderer_draw_cache.h" | 17 #include "cc/output/gl_renderer_draw_cache.h" |
18 #include "cc/output/program_binding.h" | 18 #include "cc/output/program_binding.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 "ui/events/latency_info.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 17 matching lines...) Expand all Loading... |
51 public: | 52 public: |
52 class ScopedUseGrContext; | 53 class ScopedUseGrContext; |
53 | 54 |
54 GLRenderer(const RendererSettings* settings, | 55 GLRenderer(const RendererSettings* settings, |
55 OutputSurface* output_surface, | 56 OutputSurface* output_surface, |
56 ResourceProvider* resource_provider, | 57 ResourceProvider* resource_provider, |
57 TextureMailboxDeleter* texture_mailbox_deleter, | 58 TextureMailboxDeleter* texture_mailbox_deleter, |
58 int highp_threshold_min); | 59 int highp_threshold_min); |
59 ~GLRenderer() override; | 60 ~GLRenderer() override; |
60 | 61 |
61 void SwapBuffers(CompositorFrameMetadata metadata) override; | 62 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; |
62 void SwapBuffersComplete() override; | 63 void SwapBuffersComplete() override; |
63 | 64 |
64 void DidReceiveTextureInUseResponses( | 65 void DidReceiveTextureInUseResponses( |
65 const gpu::TextureInUseResponses& responses) override; | 66 const gpu::TextureInUseResponses& responses) override; |
66 | 67 |
67 virtual bool IsContextLost(); | 68 virtual bool IsContextLost(); |
68 | 69 |
69 protected: | 70 protected: |
70 void DidChangeVisibility() override; | 71 void DidChangeVisibility() override; |
71 | 72 |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 bool force_drawing_frame_framebuffer_unflipped_ = false; | 541 bool force_drawing_frame_framebuffer_unflipped_ = false; |
541 | 542 |
542 BoundGeometry bound_geometry_; | 543 BoundGeometry bound_geometry_; |
543 ColorLUTCache color_lut_cache_; | 544 ColorLUTCache color_lut_cache_; |
544 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 545 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
545 }; | 546 }; |
546 | 547 |
547 } // namespace cc | 548 } // namespace cc |
548 | 549 |
549 #endif // CC_OUTPUT_GL_RENDERER_H_ | 550 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |