| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const RendererSettings* settings, | 55 const RendererSettings* settings, |
| 56 OutputSurface* output_surface, | 56 OutputSurface* output_surface, |
| 57 ResourceProvider* resource_provider, | 57 ResourceProvider* resource_provider, |
| 58 TextureMailboxDeleter* texture_mailbox_deleter, | 58 TextureMailboxDeleter* texture_mailbox_deleter, |
| 59 int highp_threshold_min); | 59 int highp_threshold_min); |
| 60 | 60 |
| 61 ~GLRenderer() override; | 61 ~GLRenderer() override; |
| 62 | 62 |
| 63 const RendererCapabilitiesImpl& Capabilities() const override; | 63 const RendererCapabilitiesImpl& Capabilities() const override; |
| 64 | 64 |
| 65 // Waits for rendering to finish. | |
| 66 void Finish() override; | |
| 67 | |
| 68 void SwapBuffers(CompositorFrameMetadata metadata) override; | 65 void SwapBuffers(CompositorFrameMetadata metadata) override; |
| 69 void SwapBuffersComplete() override; | 66 void SwapBuffersComplete() override; |
| 70 | 67 |
| 71 void DidReceiveTextureInUseResponses( | 68 void DidReceiveTextureInUseResponses( |
| 72 const gpu::TextureInUseResponses& responses) override; | 69 const gpu::TextureInUseResponses& responses) override; |
| 73 | 70 |
| 74 virtual bool IsContextLost(); | 71 virtual bool IsContextLost(); |
| 75 | 72 |
| 76 protected: | 73 protected: |
| 77 GLRenderer(RendererClient* client, | 74 GLRenderer(RendererClient* client, |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 // FlippedFramebuffer to return |true|. | 555 // FlippedFramebuffer to return |true|. |
| 559 bool force_drawing_frame_framebuffer_unflipped_ = false; | 556 bool force_drawing_frame_framebuffer_unflipped_ = false; |
| 560 | 557 |
| 561 BoundGeometry bound_geometry_; | 558 BoundGeometry bound_geometry_; |
| 562 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 559 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 563 }; | 560 }; |
| 564 | 561 |
| 565 } // namespace cc | 562 } // namespace cc |
| 566 | 563 |
| 567 #endif // CC_OUTPUT_GL_RENDERER_H_ | 564 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |