| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); | 316 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); |
| 317 break; | 317 break; |
| 318 case DrawQuad::SURFACE_CONTENT: | 318 case DrawQuad::SURFACE_CONTENT: |
| 319 // Surface content should be fully resolved to other quad types before | 319 // Surface content should be fully resolved to other quad types before |
| 320 // reaching a direct renderer. | 320 // reaching a direct renderer. |
| 321 NOTREACHED(); | 321 NOTREACHED(); |
| 322 break; | 322 break; |
| 323 case DrawQuad::INVALID: | 323 case DrawQuad::INVALID: |
| 324 case DrawQuad::YUV_VIDEO_CONTENT: | 324 case DrawQuad::YUV_VIDEO_CONTENT: |
| 325 case DrawQuad::STREAM_VIDEO_CONTENT: | 325 case DrawQuad::STREAM_VIDEO_CONTENT: |
| 326 case DrawQuad::Y_VIDEO_CONTENT: |
| 326 DrawUnsupportedQuad(frame, quad); | 327 DrawUnsupportedQuad(frame, quad); |
| 327 NOTREACHED(); | 328 NOTREACHED(); |
| 328 break; | 329 break; |
| 329 } | 330 } |
| 330 | 331 |
| 331 current_canvas_->resetMatrix(); | 332 current_canvas_->resetMatrix(); |
| 332 if (draw_region) { | 333 if (draw_region) { |
| 333 current_canvas_->restore(); | 334 current_canvas_->restore(); |
| 334 } | 335 } |
| 335 } | 336 } |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); | 752 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); |
| 752 | 753 |
| 753 if (!filter_backdrop_image) | 754 if (!filter_backdrop_image) |
| 754 return nullptr; | 755 return nullptr; |
| 755 | 756 |
| 756 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, | 757 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, |
| 757 &filter_backdrop_transform); | 758 &filter_backdrop_transform); |
| 758 } | 759 } |
| 759 | 760 |
| 760 } // namespace cc | 761 } // namespace cc |
| OLD | NEW |