| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 public: | 48 public: |
| 49 class ScopedUseGrContext; | 49 class ScopedUseGrContext; |
| 50 | 50 |
| 51 GLRenderer(const RendererSettings* settings, | 51 GLRenderer(const RendererSettings* settings, |
| 52 OutputSurface* output_surface, | 52 OutputSurface* output_surface, |
| 53 ResourceProvider* resource_provider, | 53 ResourceProvider* resource_provider, |
| 54 TextureMailboxDeleter* texture_mailbox_deleter, | 54 TextureMailboxDeleter* texture_mailbox_deleter, |
| 55 int highp_threshold_min); | 55 int highp_threshold_min); |
| 56 ~GLRenderer() override; | 56 ~GLRenderer() override; |
| 57 | 57 |
| 58 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; | 58 void SwapBuffers(OutputSurfaceFrame output_frame) override; |
| 59 void SwapBuffersComplete() override; | 59 void SwapBuffersComplete() override; |
| 60 | 60 |
| 61 void DidReceiveTextureInUseResponses( | 61 void DidReceiveTextureInUseResponses( |
| 62 const gpu::TextureInUseResponses& responses) override; | 62 const gpu::TextureInUseResponses& responses) override; |
| 63 | 63 |
| 64 virtual bool IsContextLost(); | 64 virtual bool IsContextLost(); |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 void DidChangeVisibility() override; | 67 void DidChangeVisibility() override; |
| 68 | 68 |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 bool force_drawing_frame_framebuffer_unflipped_ = false; | 536 bool force_drawing_frame_framebuffer_unflipped_ = false; |
| 537 | 537 |
| 538 BoundGeometry bound_geometry_; | 538 BoundGeometry bound_geometry_; |
| 539 ColorLUTCache color_lut_cache_; | 539 ColorLUTCache color_lut_cache_; |
| 540 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 540 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 541 }; | 541 }; |
| 542 | 542 |
| 543 } // namespace cc | 543 } // namespace cc |
| 544 | 544 |
| 545 #endif // CC_OUTPUT_GL_RENDERER_H_ | 545 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |