Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: media/renderers/skcanvas_video_renderer.cc

Issue 2743533002: remove unused GrPaint.h include (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "cc/paint/paint_canvas.h" 12 #include "cc/paint/paint_canvas.h"
13 #include "cc/paint/paint_flags.h" 13 #include "cc/paint/paint_flags.h"
14 #include "gpu/GLES2/gl2extchromium.h" 14 #include "gpu/GLES2/gl2extchromium.h"
15 #include "gpu/command_buffer/client/gles2_interface.h" 15 #include "gpu/command_buffer/client/gles2_interface.h"
16 #include "gpu/command_buffer/common/mailbox_holder.h" 16 #include "gpu/command_buffer/common/mailbox_holder.h"
17 #include "media/base/data_buffer.h" 17 #include "media/base/data_buffer.h"
18 #include "media/base/video_frame.h" 18 #include "media/base/video_frame.h"
19 #include "skia/ext/texture_handle.h" 19 #include "skia/ext/texture_handle.h"
20 #include "third_party/libyuv/include/libyuv.h" 20 #include "third_party/libyuv/include/libyuv.h"
21 #include "third_party/skia/include/core/SkImage.h" 21 #include "third_party/skia/include/core/SkImage.h"
22 #include "third_party/skia/include/core/SkImageGenerator.h" 22 #include "third_party/skia/include/core/SkImageGenerator.h"
23 #include "third_party/skia/include/gpu/GrContext.h" 23 #include "third_party/skia/include/gpu/GrContext.h"
24 #include "third_party/skia/include/gpu/GrPaint.h"
25 #include "third_party/skia/include/gpu/gl/GrGLTypes.h" 24 #include "third_party/skia/include/gpu/gl/GrGLTypes.h"
26 #include "ui/gfx/geometry/rect_f.h" 25 #include "ui/gfx/geometry/rect_f.h"
27 #include "ui/gfx/skia_util.h" 26 #include "ui/gfx/skia_util.h"
28 27
29 // Skia internal format depends on a platform. On Android it is ABGR, on others 28 // Skia internal format depends on a platform. On Android it is ABGR, on others
30 // it is ARGB. 29 // it is ARGB.
31 #if SK_B32_SHIFT == 0 && SK_G32_SHIFT == 8 && SK_R32_SHIFT == 16 && \ 30 #if SK_B32_SHIFT == 0 && SK_G32_SHIFT == 8 && SK_R32_SHIFT == 16 && \
32 SK_A32_SHIFT == 24 31 SK_A32_SHIFT == 24
33 #define LIBYUV_I420_TO_ARGB libyuv::I420ToARGB 32 #define LIBYUV_I420_TO_ARGB libyuv::I420ToARGB
34 #define LIBYUV_I422_TO_ARGB libyuv::I422ToARGB 33 #define LIBYUV_I422_TO_ARGB libyuv::I422ToARGB
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 last_image_->bounds().contains(visible_rect)) { 957 last_image_->bounds().contains(visible_rect)) {
959 last_image_ = last_image_->makeSubset(visible_rect); 958 last_image_ = last_image_->makeSubset(visible_rect);
960 } 959 }
961 } 960 }
962 961
963 SkISize SkCanvasVideoRenderer::LastImageDimensionsForTesting() { 962 SkISize SkCanvasVideoRenderer::LastImageDimensionsForTesting() {
964 return last_image_dimensions_for_testing_; 963 return last_image_dimensions_for_testing_;
965 } 964 }
966 965
967 } // namespace media 966 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698