| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 const gfx::QuadF& SharedGeometryQuad() const { return shared_geometry_quad_; } | 86 const gfx::QuadF& SharedGeometryQuad() const { return shared_geometry_quad_; } |
| 87 const StaticGeometryBinding* SharedGeometry() const { | 87 const StaticGeometryBinding* SharedGeometry() const { |
| 88 return shared_geometry_.get(); | 88 return shared_geometry_.get(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void GetFramebufferPixelsAsync(const DrawingFrame* frame, | 91 void GetFramebufferPixelsAsync(const DrawingFrame* frame, |
| 92 const gfx::Rect& rect, | 92 const gfx::Rect& rect, |
| 93 std::unique_ptr<CopyOutputRequest> request); | 93 std::unique_ptr<CopyOutputRequest> request); |
| 94 void GetFramebufferTexture(unsigned texture_id, | 94 void GetFramebufferTexture(unsigned texture_id, |
| 95 ResourceFormat texture_format, | |
| 96 const gfx::Rect& device_rect); | 95 const gfx::Rect& device_rect); |
| 97 void ReleaseRenderPassTextures(); | 96 void ReleaseRenderPassTextures(); |
| 98 enum BoundGeometry { NO_BINDING, SHARED_BINDING, CLIPPED_BINDING }; | 97 enum BoundGeometry { NO_BINDING, SHARED_BINDING, CLIPPED_BINDING }; |
| 99 void PrepareGeometry(BoundGeometry geometry_to_bind); | 98 void PrepareGeometry(BoundGeometry geometry_to_bind); |
| 100 void SetStencilEnabled(bool enabled); | 99 void SetStencilEnabled(bool enabled); |
| 101 bool stencil_enabled() const { return stencil_shadow_; } | 100 bool stencil_enabled() const { return stencil_shadow_; } |
| 102 void SetBlendEnabled(bool enabled); | 101 void SetBlendEnabled(bool enabled); |
| 103 bool blend_enabled() const { return blend_shadow_; } | 102 bool blend_enabled() const { return blend_shadow_; } |
| 104 | 103 |
| 105 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; | 104 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 TexturedQuadDrawCache draw_cache_; | 503 TexturedQuadDrawCache draw_cache_; |
| 505 int highp_threshold_min_; | 504 int highp_threshold_min_; |
| 506 int highp_threshold_cache_; | 505 int highp_threshold_cache_; |
| 507 | 506 |
| 508 struct PendingAsyncReadPixels; | 507 struct PendingAsyncReadPixels; |
| 509 std::vector<std::unique_ptr<PendingAsyncReadPixels>> | 508 std::vector<std::unique_ptr<PendingAsyncReadPixels>> |
| 510 pending_async_read_pixels_; | 509 pending_async_read_pixels_; |
| 511 | 510 |
| 512 std::unique_ptr<ResourceProvider::ScopedWriteLockGL> | 511 std::unique_ptr<ResourceProvider::ScopedWriteLockGL> |
| 513 current_framebuffer_lock_; | 512 current_framebuffer_lock_; |
| 513 // This is valid when current_framebuffer_lock_ is not null. |
| 514 ResourceFormat current_framebuffer_format_; |
| 514 | 515 |
| 515 class SyncQuery; | 516 class SyncQuery; |
| 516 std::deque<std::unique_ptr<SyncQuery>> pending_sync_queries_; | 517 std::deque<std::unique_ptr<SyncQuery>> pending_sync_queries_; |
| 517 std::deque<std::unique_ptr<SyncQuery>> available_sync_queries_; | 518 std::deque<std::unique_ptr<SyncQuery>> available_sync_queries_; |
| 518 std::unique_ptr<SyncQuery> current_sync_query_; | 519 std::unique_ptr<SyncQuery> current_sync_query_; |
| 519 bool use_sync_query_; | 520 bool use_sync_query_; |
| 520 bool use_blend_equation_advanced_; | 521 bool use_blend_equation_advanced_; |
| 521 bool use_blend_equation_advanced_coherent_; | 522 bool use_blend_equation_advanced_coherent_; |
| 522 | 523 |
| 523 SkBitmap on_demand_tile_raster_bitmap_; | 524 SkBitmap on_demand_tile_raster_bitmap_; |
| 524 ResourceId on_demand_tile_raster_resource_id_; | 525 ResourceId on_demand_tile_raster_resource_id_; |
| 525 BoundGeometry bound_geometry_; | 526 BoundGeometry bound_geometry_; |
| 526 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 527 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 527 }; | 528 }; |
| 528 | 529 |
| 529 } // namespace cc | 530 } // namespace cc |
| 530 | 531 |
| 531 #endif // CC_OUTPUT_GL_RENDERER_H_ | 532 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |