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/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); | 287 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); |
288 break; | 288 break; |
289 case DrawQuad::SURFACE_CONTENT: | 289 case DrawQuad::SURFACE_CONTENT: |
290 // Surface content should be fully resolved to other quad types before | 290 // Surface content should be fully resolved to other quad types before |
291 // reaching a direct renderer. | 291 // reaching a direct renderer. |
292 NOTREACHED(); | 292 NOTREACHED(); |
293 break; | 293 break; |
294 case DrawQuad::INVALID: | 294 case DrawQuad::INVALID: |
295 case DrawQuad::YUV_VIDEO_CONTENT: | 295 case DrawQuad::YUV_VIDEO_CONTENT: |
296 case DrawQuad::STREAM_VIDEO_CONTENT: | 296 case DrawQuad::STREAM_VIDEO_CONTENT: |
| 297 case DrawQuad::Y_VIDEO_CONTENT: |
297 DrawUnsupportedQuad(frame, quad); | 298 DrawUnsupportedQuad(frame, quad); |
298 NOTREACHED(); | 299 NOTREACHED(); |
299 break; | 300 break; |
300 } | 301 } |
301 | 302 |
302 current_canvas_->resetMatrix(); | 303 current_canvas_->resetMatrix(); |
303 if (draw_region) { | 304 if (draw_region) { |
304 current_canvas_->restore(); | 305 current_canvas_->restore(); |
305 } | 306 } |
306 } | 307 } |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); | 711 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); |
711 | 712 |
712 if (!filter_backdrop_image) | 713 if (!filter_backdrop_image) |
713 return nullptr; | 714 return nullptr; |
714 | 715 |
715 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, | 716 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, |
716 &filter_backdrop_transform); | 717 &filter_backdrop_transform); |
717 } | 718 } |
718 | 719 |
719 } // namespace cc | 720 } // namespace cc |
OLD | NEW |