OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/delegated_frame_host.h" | 5 #include "content/browser/compositor/delegated_frame_host.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/time/default_tick_clock.h" | 14 #include "base/time/default_tick_clock.h" |
15 #include "cc/output/compositor_frame.h" | 15 #include "cc/output/compositor_frame.h" |
16 #include "cc/output/compositor_frame_ack.h" | 16 #include "cc/output/compositor_frame_ack.h" |
17 #include "cc/output/copy_output_request.h" | 17 #include "cc/output/copy_output_request.h" |
18 #include "cc/resources/single_release_callback.h" | 18 #include "cc/resources/single_release_callback.h" |
19 #include "cc/resources/texture_mailbox.h" | 19 #include "cc/resources/texture_mailbox.h" |
20 #include "cc/surfaces/surface.h" | 20 #include "cc/surfaces/surface.h" |
21 #include "cc/surfaces/surface_factory.h" | 21 #include "cc/surfaces/surface_factory.h" |
22 #include "cc/surfaces/surface_hittest.h" | 22 #include "cc/surfaces/surface_hittest.h" |
23 #include "cc/surfaces/surface_manager.h" | 23 #include "cc/surfaces/surface_manager.h" |
| 24 #include "content/browser/compositor/gl_helper.h" |
24 #include "content/browser/compositor/resize_lock.h" | 25 #include "content/browser/compositor/resize_lock.h" |
25 #include "content/browser/compositor/surface_utils.h" | 26 #include "content/browser/compositor/surface_utils.h" |
26 #include "content/browser/gpu/compositor_util.h" | 27 #include "content/browser/gpu/compositor_util.h" |
27 #include "content/common/gpu/client/gl_helper.h" | |
28 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 28 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
29 #include "content/public/common/content_switches.h" | 29 #include "content/public/common/content_switches.h" |
30 #include "media/base/video_frame.h" | 30 #include "media/base/video_frame.h" |
31 #include "media/base/video_util.h" | 31 #include "media/base/video_util.h" |
32 #include "skia/ext/image_operations.h" | 32 #include "skia/ext/image_operations.h" |
33 #include "third_party/skia/include/core/SkCanvas.h" | 33 #include "third_party/skia/include/core/SkCanvas.h" |
34 #include "third_party/skia/include/core/SkPaint.h" | 34 #include "third_party/skia/include/core/SkPaint.h" |
35 #include "third_party/skia/include/effects/SkLumaColorFilter.h" | 35 #include "third_party/skia/include/effects/SkLumaColorFilter.h" |
36 #include "ui/gfx/geometry/dip_util.h" | 36 #include "ui/gfx/geometry/dip_util.h" |
37 | 37 |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 cc::SurfaceManager* manager = factory->GetSurfaceManager(); | 898 cc::SurfaceManager* manager = factory->GetSurfaceManager(); |
899 new_layer->SetShowSurface( | 899 new_layer->SetShowSurface( |
900 surface_id_, base::Bind(&SatisfyCallback, base::Unretained(manager)), | 900 surface_id_, base::Bind(&SatisfyCallback, base::Unretained(manager)), |
901 base::Bind(&RequireCallback, base::Unretained(manager)), | 901 base::Bind(&RequireCallback, base::Unretained(manager)), |
902 current_surface_size_, current_scale_factor_, | 902 current_surface_size_, current_scale_factor_, |
903 current_frame_size_in_dip_); | 903 current_frame_size_in_dip_); |
904 } | 904 } |
905 } | 905 } |
906 | 906 |
907 } // namespace content | 907 } // namespace content |
OLD | NEW |