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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 break; | 310 break; |
311 case DrawQuad::TILED_CONTENT: | 311 case DrawQuad::TILED_CONTENT: |
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::IO_SURFACE_CONTENT: | |
321 case DrawQuad::YUV_VIDEO_CONTENT: | 320 case DrawQuad::YUV_VIDEO_CONTENT: |
322 case DrawQuad::STREAM_VIDEO_CONTENT: | 321 case DrawQuad::STREAM_VIDEO_CONTENT: |
323 DrawUnsupportedQuad(frame, quad); | 322 DrawUnsupportedQuad(frame, quad); |
324 NOTREACHED(); | 323 NOTREACHED(); |
325 break; | 324 break; |
326 } | 325 } |
327 | 326 |
328 current_canvas_->resetMatrix(); | 327 current_canvas_->resetMatrix(); |
329 if (draw_region) { | 328 if (draw_region) { |
330 current_canvas_->restore(); | 329 current_canvas_->restore(); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); | 746 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); |
748 | 747 |
749 if (!filter_backdrop_image) | 748 if (!filter_backdrop_image) |
750 return nullptr; | 749 return nullptr; |
751 | 750 |
752 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, | 751 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, |
753 &filter_backdrop_transform); | 752 &filter_backdrop_transform); |
754 } | 753 } |
755 | 754 |
756 } // namespace cc | 755 } // namespace cc |
OLD | NEW |