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