| 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 bool use_swap_with_bounds() const { return use_swap_with_bounds_; } |
| 59 |
| 58 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; | 60 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; |
| 59 void SwapBuffersComplete() override; | 61 void SwapBuffersComplete() override; |
| 60 | 62 |
| 61 void DidReceiveTextureInUseResponses( | 63 void DidReceiveTextureInUseResponses( |
| 62 const gpu::TextureInUseResponses& responses) override; | 64 const gpu::TextureInUseResponses& responses) override; |
| 63 | 65 |
| 64 virtual bool IsContextLost(); | 66 virtual bool IsContextLost(); |
| 65 | 67 |
| 66 protected: | 68 protected: |
| 67 void DidChangeVisibility() override; | 69 void DidChangeVisibility() override; |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 std::map<gfx::ColorSpace, std::unique_ptr<gfx::ColorTransform>>> | 308 std::map<gfx::ColorSpace, std::unique_ptr<gfx::ColorTransform>>> |
| 307 color_transform_cache_; | 309 color_transform_cache_; |
| 308 | 310 |
| 309 gpu::gles2::GLES2Interface* gl_; | 311 gpu::gles2::GLES2Interface* gl_; |
| 310 gpu::ContextSupport* context_support_; | 312 gpu::ContextSupport* context_support_; |
| 311 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; | 313 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; |
| 312 | 314 |
| 313 TextureMailboxDeleter* texture_mailbox_deleter_; | 315 TextureMailboxDeleter* texture_mailbox_deleter_; |
| 314 | 316 |
| 315 gfx::Rect swap_buffer_rect_; | 317 gfx::Rect swap_buffer_rect_; |
| 318 std::vector<gfx::Rect> swap_content_bounds_; |
| 316 gfx::Rect scissor_rect_; | 319 gfx::Rect scissor_rect_; |
| 317 bool is_scissor_enabled_ = false; | 320 bool is_scissor_enabled_ = false; |
| 318 bool stencil_shadow_ = false; | 321 bool stencil_shadow_ = false; |
| 319 bool blend_shadow_ = false; | 322 bool blend_shadow_ = false; |
| 320 const Program* current_program_ = nullptr; | 323 const Program* current_program_ = nullptr; |
| 321 TexturedQuadDrawCache draw_cache_; | 324 TexturedQuadDrawCache draw_cache_; |
| 322 int highp_threshold_min_ = 0; | 325 int highp_threshold_min_ = 0; |
| 323 int highp_threshold_cache_ = 0; | 326 int highp_threshold_cache_ = 0; |
| 324 | 327 |
| 325 struct PendingAsyncReadPixels; | 328 struct PendingAsyncReadPixels; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 gfx::Size offscreen_stencil_renderbuffer_size_; | 366 gfx::Size offscreen_stencil_renderbuffer_size_; |
| 364 | 367 |
| 365 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; | 368 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; |
| 366 | 369 |
| 367 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 370 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 368 }; | 371 }; |
| 369 | 372 |
| 370 } // namespace cc | 373 } // namespace cc |
| 371 | 374 |
| 372 #endif // CC_OUTPUT_GL_RENDERER_H_ | 375 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |