OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/software_renderer.h" | 5 #include "cc/output/software_renderer.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
9 #include "cc/base/math_util.h" | 9 #include "cc/base/math_util.h" |
10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); | 282 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); |
283 break; | 283 break; |
284 case DrawQuad::SURFACE_CONTENT: | 284 case DrawQuad::SURFACE_CONTENT: |
285 // Surface content should be fully resolved to other quad types before | 285 // Surface content should be fully resolved to other quad types before |
286 // reaching a direct renderer. | 286 // reaching a direct renderer. |
287 NOTREACHED(); | 287 NOTREACHED(); |
288 break; | 288 break; |
289 case DrawQuad::INVALID: | 289 case DrawQuad::INVALID: |
290 case DrawQuad::YUV_VIDEO_CONTENT: | 290 case DrawQuad::YUV_VIDEO_CONTENT: |
291 case DrawQuad::STREAM_VIDEO_CONTENT: | 291 case DrawQuad::STREAM_VIDEO_CONTENT: |
| 292 case DrawQuad::Y_VIDEO_CONTENT: |
292 DrawUnsupportedQuad(frame, quad); | 293 DrawUnsupportedQuad(frame, quad); |
293 NOTREACHED(); | 294 NOTREACHED(); |
294 break; | 295 break; |
295 } | 296 } |
296 | 297 |
297 current_canvas_->resetMatrix(); | 298 current_canvas_->resetMatrix(); |
298 if (draw_region) { | 299 if (draw_region) { |
299 current_canvas_->restore(); | 300 current_canvas_->restore(); |
300 } | 301 } |
301 } | 302 } |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); | 713 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); |
713 | 714 |
714 if (!filter_backdrop_image) | 715 if (!filter_backdrop_image) |
715 return nullptr; | 716 return nullptr; |
716 | 717 |
717 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, | 718 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, |
718 &filter_backdrop_transform); | 719 &filter_backdrop_transform); |
719 } | 720 } |
720 | 721 |
721 } // namespace cc | 722 } // namespace cc |
OLD | NEW |