| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 TextureMailboxDeleter* texture_mailbox_deleter, | 58 TextureMailboxDeleter* texture_mailbox_deleter, |
| 59 int highp_threshold_min); | 59 int highp_threshold_min); |
| 60 ~GLRenderer() override; | 60 ~GLRenderer() override; |
| 61 | 61 |
| 62 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; | 62 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; |
| 63 void SwapBuffersComplete() override; | 63 void SwapBuffersComplete() override; |
| 64 | 64 |
| 65 void DidReceiveTextureInUseResponses( | 65 void DidReceiveTextureInUseResponses( |
| 66 const gpu::TextureInUseResponses& responses) override; | 66 const gpu::TextureInUseResponses& responses) override; |
| 67 | 67 |
| 68 void ReadbackSwappedOverlayTextures( |
| 69 std::vector<SkBitmap>* bitmaps, |
| 70 const base::Callback<void(bool)>& callback) override; |
| 71 |
| 68 virtual bool IsContextLost(); | 72 virtual bool IsContextLost(); |
| 69 | 73 |
| 70 protected: | 74 protected: |
| 71 void DidChangeVisibility() override; | 75 void DidChangeVisibility() override; |
| 72 | 76 |
| 73 const gfx::QuadF& SharedGeometryQuad() const { return shared_geometry_quad_; } | 77 const gfx::QuadF& SharedGeometryQuad() const { return shared_geometry_quad_; } |
| 74 const StaticGeometryBinding* SharedGeometry() const { | 78 const StaticGeometryBinding* SharedGeometry() const { |
| 75 return shared_geometry_.get(); | 79 return shared_geometry_.get(); |
| 76 } | 80 } |
| 77 | 81 |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 bool force_drawing_frame_framebuffer_unflipped_ = false; | 545 bool force_drawing_frame_framebuffer_unflipped_ = false; |
| 542 | 546 |
| 543 BoundGeometry bound_geometry_; | 547 BoundGeometry bound_geometry_; |
| 544 ColorLUTCache color_lut_cache_; | 548 ColorLUTCache color_lut_cache_; |
| 545 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 549 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 546 }; | 550 }; |
| 547 | 551 |
| 548 } // namespace cc | 552 } // namespace cc |
| 549 | 553 |
| 550 #endif // CC_OUTPUT_GL_RENDERER_H_ | 554 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |