| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/compositor/surface_utils.h" | 5 #include "content/browser/compositor/surface_utils.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "cc/output/copy_output_result.h" | 10 #include "cc/output/copy_output_result.h" |
| 11 #include "cc/resources/single_release_callback.h" | 11 #include "cc/resources/single_release_callback.h" |
| 12 #include "cc/surfaces/surface_id_allocator.h" | 12 #include "cc/surfaces/surface_id_allocator.h" |
| 13 #include "content/browser/compositor/gl_helper.h" | 13 #include "content/browser/compositor/gl_helper.h" |
| 14 #include "skia/ext/image_operations.h" | 14 #include "skia/ext/image_operations.h" |
| 15 #include "skia/ext/refptr.h" | |
| 16 #include "third_party/skia/include/core/SkCanvas.h" | 15 #include "third_party/skia/include/core/SkCanvas.h" |
| 17 #include "third_party/skia/include/core/SkColorFilter.h" | 16 #include "third_party/skia/include/core/SkColorFilter.h" |
| 18 #include "third_party/skia/include/core/SkPaint.h" | 17 #include "third_party/skia/include/core/SkPaint.h" |
| 19 #include "third_party/skia/include/effects/SkLumaColorFilter.h" | 18 #include "third_party/skia/include/effects/SkLumaColorFilter.h" |
| 20 #include "ui/gfx/geometry/rect.h" | 19 #include "ui/gfx/geometry/rect.h" |
| 21 | 20 |
| 22 #if defined(OS_ANDROID) | 21 #if defined(OS_ANDROID) |
| 23 #include "content/browser/renderer_host/compositor_impl_android.h" | 22 #include "content/browser/renderer_host/compositor_impl_android.h" |
| 24 #else | 23 #else |
| 25 #include "content/browser/compositor/image_transport_factory.h" | 24 #include "content/browser/compositor/image_transport_factory.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 return; | 199 return; |
| 201 } | 200 } |
| 202 | 201 |
| 203 DCHECK(result->HasBitmap()); | 202 DCHECK(result->HasBitmap()); |
| 204 // Software path | 203 // Software path |
| 205 PrepareBitmapCopyOutputResult(output_size_in_pixel, color_type, callback, | 204 PrepareBitmapCopyOutputResult(output_size_in_pixel, color_type, callback, |
| 206 std::move(result)); | 205 std::move(result)); |
| 207 } | 206 } |
| 208 | 207 |
| 209 } // namespace content | 208 } // namespace content |
| OLD | NEW |