| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); | 300 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); |
| 301 break; | 301 break; |
| 302 case DrawQuad::SURFACE_CONTENT: | 302 case DrawQuad::SURFACE_CONTENT: |
| 303 // Surface content should be fully resolved to other quad types before | 303 // Surface content should be fully resolved to other quad types before |
| 304 // reaching a direct renderer. | 304 // reaching a direct renderer. |
| 305 NOTREACHED(); | 305 NOTREACHED(); |
| 306 break; | 306 break; |
| 307 case DrawQuad::INVALID: | 307 case DrawQuad::INVALID: |
| 308 case DrawQuad::YUV_VIDEO_CONTENT: | 308 case DrawQuad::YUV_VIDEO_CONTENT: |
| 309 case DrawQuad::STREAM_VIDEO_CONTENT: | 309 case DrawQuad::STREAM_VIDEO_CONTENT: |
| 310 case DrawQuad::Y_VIDEO_CONTENT: |
| 310 DrawUnsupportedQuad(frame, quad); | 311 DrawUnsupportedQuad(frame, quad); |
| 311 NOTREACHED(); | 312 NOTREACHED(); |
| 312 break; | 313 break; |
| 313 } | 314 } |
| 314 | 315 |
| 315 current_canvas_->resetMatrix(); | 316 current_canvas_->resetMatrix(); |
| 316 if (draw_region) { | 317 if (draw_region) { |
| 317 current_canvas_->restore(); | 318 current_canvas_->restore(); |
| 318 } | 319 } |
| 319 } | 320 } |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); | 743 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); |
| 743 | 744 |
| 744 if (!filter_backdrop_image) | 745 if (!filter_backdrop_image) |
| 745 return nullptr; | 746 return nullptr; |
| 746 | 747 |
| 747 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, | 748 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, |
| 748 &filter_backdrop_transform); | 749 &filter_backdrop_transform); |
| 749 } | 750 } |
| 750 | 751 |
| 751 } // namespace cc | 752 } // namespace cc |
| OLD | NEW |