OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "media/renderers/skcanvas_video_renderer.h" | 5 #include "media/renderers/skcanvas_video_renderer.h" |
6 | 6 |
7 #include <GLES3/gl3.h> | 7 #include <GLES3/gl3.h> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "cc/paint/paint_canvas.h" | 11 #include "cc/paint/paint_canvas.h" |
12 #include "cc/paint/paint_flags.h" | 12 #include "cc/paint/paint_flags.h" |
13 #include "gpu/GLES2/gl2extchromium.h" | 13 #include "gpu/GLES2/gl2extchromium.h" |
14 #include "gpu/command_buffer/client/gles2_interface.h" | 14 #include "gpu/command_buffer/client/gles2_interface.h" |
15 #include "gpu/command_buffer/common/mailbox_holder.h" | 15 #include "gpu/command_buffer/common/mailbox_holder.h" |
16 #include "media/base/data_buffer.h" | 16 #include "media/base/data_buffer.h" |
17 #include "media/base/video_frame.h" | 17 #include "media/base/video_frame.h" |
18 #include "media/base/yuv_convert.h" | |
19 #include "skia/ext/texture_handle.h" | 18 #include "skia/ext/texture_handle.h" |
20 #include "third_party/libyuv/include/libyuv.h" | 19 #include "third_party/libyuv/include/libyuv.h" |
21 #include "third_party/skia/include/core/SkImage.h" | 20 #include "third_party/skia/include/core/SkImage.h" |
22 #include "third_party/skia/include/core/SkImageGenerator.h" | 21 #include "third_party/skia/include/core/SkImageGenerator.h" |
23 #include "third_party/skia/include/gpu/GrContext.h" | 22 #include "third_party/skia/include/gpu/GrContext.h" |
24 #include "third_party/skia/include/gpu/GrPaint.h" | 23 #include "third_party/skia/include/gpu/GrPaint.h" |
25 #include "third_party/skia/include/gpu/GrTexture.h" | 24 #include "third_party/skia/include/gpu/GrTexture.h" |
26 #include "third_party/skia/include/gpu/GrTextureProvider.h" | 25 #include "third_party/skia/include/gpu/GrTextureProvider.h" |
27 #include "third_party/skia/include/gpu/SkGr.h" | 26 #include "third_party/skia/include/gpu/SkGr.h" |
28 #include "third_party/skia/include/gpu/gl/GrGLTypes.h" | 27 #include "third_party/skia/include/gpu/gl/GrGLTypes.h" |
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 last_image_->bounds().contains(visible_rect)) { | 960 last_image_->bounds().contains(visible_rect)) { |
962 last_image_ = last_image_->makeSubset(visible_rect); | 961 last_image_ = last_image_->makeSubset(visible_rect); |
963 } | 962 } |
964 } | 963 } |
965 | 964 |
966 SkISize SkCanvasVideoRenderer::LastImageDimensionsForTesting() { | 965 SkISize SkCanvasVideoRenderer::LastImageDimensionsForTesting() { |
967 return last_image_dimensions_for_testing_; | 966 return last_image_dimensions_for_testing_; |
968 } | 967 } |
969 | 968 |
970 } // namespace media | 969 } // namespace media |
OLD | NEW |