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 "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/base/scoped_ptr_vector.h" | 10 #include "cc/base/scoped_ptr_vector.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 private: | 144 private: |
145 friend class GLRendererShaderPixelTest; | 145 friend class GLRendererShaderPixelTest; |
146 friend class GLRendererShaderTest; | 146 friend class GLRendererShaderTest; |
147 | 147 |
148 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); | 148 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); |
149 | 149 |
150 void DrawCheckerboardQuad(const DrawingFrame* frame, | 150 void DrawCheckerboardQuad(const DrawingFrame* frame, |
151 const CheckerboardDrawQuad* quad); | 151 const CheckerboardDrawQuad* quad); |
152 void DrawDebugBorderQuad(const DrawingFrame* frame, | 152 void DrawDebugBorderQuad(const DrawingFrame* frame, |
153 const DebugBorderDrawQuad* quad); | 153 const DebugBorderDrawQuad* quad); |
154 scoped_ptr<ScopedResource> DrawBackgroundFilters( | 154 scoped_ptr<ScopedResource> GetBackgroundWithFilters( |
155 DrawingFrame* frame, | 155 DrawingFrame* frame, |
156 const RenderPassDrawQuad* quad, | 156 const RenderPassDrawQuad* quad, |
157 const gfx::Transform& contents_device_transform, | 157 const gfx::Transform& contents_device_transform, |
158 const gfx::Transform& contents_device_transformInverse); | 158 const gfx::Transform& contents_device_transformInverse, |
| 159 bool* background_changed); |
159 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); | 160 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); |
160 void DrawSolidColorQuad(const DrawingFrame* frame, | 161 void DrawSolidColorQuad(const DrawingFrame* frame, |
161 const SolidColorDrawQuad* quad); | 162 const SolidColorDrawQuad* quad); |
162 void DrawStreamVideoQuad(const DrawingFrame* frame, | 163 void DrawStreamVideoQuad(const DrawingFrame* frame, |
163 const StreamVideoDrawQuad* quad); | 164 const StreamVideoDrawQuad* quad); |
164 void EnqueueTextureQuad(const DrawingFrame* frame, | 165 void EnqueueTextureQuad(const DrawingFrame* frame, |
165 const TextureDrawQuad* quad); | 166 const TextureDrawQuad* quad); |
166 void FlushTextureQuadCache(); | 167 void FlushTextureQuadCache(); |
167 void DrawIOSurfaceQuad(const DrawingFrame* frame, | 168 void DrawIOSurfaceQuad(const DrawingFrame* frame, |
168 const IOSurfaceDrawQuad* quad); | 169 const IOSurfaceDrawQuad* quad); |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 skia::RefPtr<GrContext> gr_context_; | 431 skia::RefPtr<GrContext> gr_context_; |
431 skia::RefPtr<SkCanvas> sk_canvas_; | 432 skia::RefPtr<SkCanvas> sk_canvas_; |
432 | 433 |
433 TextureMailboxDeleter* texture_mailbox_deleter_; | 434 TextureMailboxDeleter* texture_mailbox_deleter_; |
434 | 435 |
435 gfx::Rect swap_buffer_rect_; | 436 gfx::Rect swap_buffer_rect_; |
436 gfx::Rect scissor_rect_; | 437 gfx::Rect scissor_rect_; |
437 gfx::Rect viewport_; | 438 gfx::Rect viewport_; |
438 bool is_backbuffer_discarded_; | 439 bool is_backbuffer_discarded_; |
439 bool is_using_bind_uniform_; | 440 bool is_using_bind_uniform_; |
| 441 bool is_using_texture_storage_; |
440 bool visible_; | 442 bool visible_; |
441 bool is_scissor_enabled_; | 443 bool is_scissor_enabled_; |
442 bool stencil_shadow_; | 444 bool stencil_shadow_; |
443 bool blend_shadow_; | 445 bool blend_shadow_; |
444 unsigned program_shadow_; | 446 unsigned program_shadow_; |
445 TexturedQuadDrawCache draw_cache_; | 447 TexturedQuadDrawCache draw_cache_; |
446 int highp_threshold_min_; | 448 int highp_threshold_min_; |
447 int highp_threshold_cache_; | 449 int highp_threshold_cache_; |
448 | 450 |
449 struct PendingAsyncReadPixels; | 451 struct PendingAsyncReadPixels; |
(...skipping 17 matching lines...) Expand all Loading... |
467 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 469 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
468 #define GLC(context, x) \ | 470 #define GLC(context, x) \ |
469 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 471 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
470 #else | 472 #else |
471 #define GLC(context, x) (x) | 473 #define GLC(context, x) (x) |
472 #endif | 474 #endif |
473 | 475 |
474 } // namespace cc | 476 } // namespace cc |
475 | 477 |
476 #endif // CC_OUTPUT_GL_RENDERER_H_ | 478 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |