| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 std::unique_ptr<DynamicGeometryBinding> clipped_geometry_; | 291 std::unique_ptr<DynamicGeometryBinding> clipped_geometry_; |
| 292 gfx::QuadF shared_geometry_quad_; | 292 gfx::QuadF shared_geometry_quad_; |
| 293 | 293 |
| 294 // This will return nullptr if the requested program has not yet been | 294 // This will return nullptr if the requested program has not yet been |
| 295 // initialized. | 295 // initialized. |
| 296 const Program* GetProgramIfInitialized(const ProgramKey& key) const; | 296 const Program* GetProgramIfInitialized(const ProgramKey& key) const; |
| 297 | 297 |
| 298 std::unordered_map<ProgramKey, std::unique_ptr<Program>, ProgramKeyHash> | 298 std::unordered_map<ProgramKey, std::unique_ptr<Program>, ProgramKeyHash> |
| 299 program_cache_; | 299 program_cache_; |
| 300 | 300 |
| 301 const gfx::ColorTransform* GetColorTransform(const gfx::ColorSpace& src, |
| 302 const gfx::ColorSpace& dst); |
| 303 std::map<gfx::ColorSpace, |
| 304 std::map<gfx::ColorSpace, std::unique_ptr<gfx::ColorTransform>>> |
| 305 color_transform_cache_; |
| 306 |
| 301 gpu::gles2::GLES2Interface* gl_; | 307 gpu::gles2::GLES2Interface* gl_; |
| 302 gpu::ContextSupport* context_support_; | 308 gpu::ContextSupport* context_support_; |
| 303 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; | 309 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; |
| 304 | 310 |
| 305 TextureMailboxDeleter* texture_mailbox_deleter_; | 311 TextureMailboxDeleter* texture_mailbox_deleter_; |
| 306 | 312 |
| 307 gfx::Rect swap_buffer_rect_; | 313 gfx::Rect swap_buffer_rect_; |
| 308 gfx::Rect scissor_rect_; | 314 gfx::Rect scissor_rect_; |
| 309 bool is_scissor_enabled_ = false; | 315 bool is_scissor_enabled_ = false; |
| 310 bool stencil_shadow_ = false; | 316 bool stencil_shadow_ = false; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 gfx::Size offscreen_stencil_renderbuffer_size_; | 360 gfx::Size offscreen_stencil_renderbuffer_size_; |
| 355 | 361 |
| 356 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; | 362 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; |
| 357 | 363 |
| 358 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 364 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 359 }; | 365 }; |
| 360 | 366 |
| 361 } // namespace cc | 367 } // namespace cc |
| 362 | 368 |
| 363 #endif // CC_OUTPUT_GL_RENDERER_H_ | 369 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |