| 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 #include "cc/output/gl_renderer.h" | 5 #include "cc/output/gl_renderer.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 break; | 343 break; |
| 344 case DrawQuad::RENDER_PASS: | 344 case DrawQuad::RENDER_PASS: |
| 345 DrawRenderPassQuad(frame, RenderPassDrawQuad::MaterialCast(quad)); | 345 DrawRenderPassQuad(frame, RenderPassDrawQuad::MaterialCast(quad)); |
| 346 break; | 346 break; |
| 347 case DrawQuad::SOLID_COLOR: | 347 case DrawQuad::SOLID_COLOR: |
| 348 DrawSolidColorQuad(frame, SolidColorDrawQuad::MaterialCast(quad)); | 348 DrawSolidColorQuad(frame, SolidColorDrawQuad::MaterialCast(quad)); |
| 349 break; | 349 break; |
| 350 case DrawQuad::STREAM_VIDEO_CONTENT: | 350 case DrawQuad::STREAM_VIDEO_CONTENT: |
| 351 DrawStreamVideoQuad(frame, StreamVideoDrawQuad::MaterialCast(quad)); | 351 DrawStreamVideoQuad(frame, StreamVideoDrawQuad::MaterialCast(quad)); |
| 352 break; | 352 break; |
| 353 case DrawQuad::SURFACE_CONTENT: |
| 354 NOTREACHED(); |
| 355 break; |
| 353 case DrawQuad::TEXTURE_CONTENT: | 356 case DrawQuad::TEXTURE_CONTENT: |
| 354 EnqueueTextureQuad(frame, TextureDrawQuad::MaterialCast(quad)); | 357 EnqueueTextureQuad(frame, TextureDrawQuad::MaterialCast(quad)); |
| 355 break; | 358 break; |
| 356 case DrawQuad::TILED_CONTENT: | 359 case DrawQuad::TILED_CONTENT: |
| 357 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); | 360 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); |
| 358 break; | 361 break; |
| 359 case DrawQuad::YUV_VIDEO_CONTENT: | 362 case DrawQuad::YUV_VIDEO_CONTENT: |
| 360 DrawYUVVideoQuad(frame, YUVVideoDrawQuad::MaterialCast(quad)); | 363 DrawYUVVideoQuad(frame, YUVVideoDrawQuad::MaterialCast(quad)); |
| 361 break; | 364 break; |
| 362 } | 365 } |
| (...skipping 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3008 is_scissor_enabled_ = false; | 3011 is_scissor_enabled_ = false; |
| 3009 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST)); | 3012 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST)); |
| 3010 scissor_rect_needs_reset_ = true; | 3013 scissor_rect_needs_reset_ = true; |
| 3011 } | 3014 } |
| 3012 | 3015 |
| 3013 bool GLRenderer::IsContextLost() { | 3016 bool GLRenderer::IsContextLost() { |
| 3014 return output_surface_->context_provider()->IsContextLost(); | 3017 return output_surface_->context_provider()->IsContextLost(); |
| 3015 } | 3018 } |
| 3016 | 3019 |
| 3017 } // namespace cc | 3020 } // namespace cc |
| OLD | NEW |