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 "content/renderer/pepper/pepper_plugin_instance_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bit_cast.h" | 10 #include "base/bit_cast.h" |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/strings/utf_offset_string_conversions.h" | 19 #include "base/strings/utf_offset_string_conversions.h" |
20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "base/trace_event/trace_event.h" | 23 #include "base/trace_event/trace_event.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "cc/blink/web_layer_impl.h" | 25 #include "cc/blink/web_layer_impl.h" |
26 #include "cc/layers/texture_layer.h" | 26 #include "cc/layers/texture_layer.h" |
27 #include "content/common/content_constants_internal.h" | 27 #include "content/common/content_constants_internal.h" |
28 #include "content/common/frame_messages.h" | 28 #include "content/common/frame_messages.h" |
29 #include "content/public/common/content_constants.h" | 29 #include "content/public/common/content_constants.h" |
30 #include "content/public/renderer/content_renderer_client.h" | 30 #include "content/public/renderer/content_renderer_client.h" |
31 #include "content/renderer/pepper/content_decryptor_delegate.h" | 31 #include "content/renderer/pepper/content_decryptor_delegate.h" |
(...skipping 3387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3419 const cc::TextureMailbox& mailbox) const { | 3419 const cc::TextureMailbox& mailbox) const { |
3420 auto it = | 3420 auto it = |
3421 std::find_if(texture_ref_counts_.begin(), texture_ref_counts_.end(), | 3421 std::find_if(texture_ref_counts_.begin(), texture_ref_counts_.end(), |
3422 [&mailbox](const TextureMailboxRefCount& ref_count) { | 3422 [&mailbox](const TextureMailboxRefCount& ref_count) { |
3423 return ref_count.first.mailbox() == mailbox.mailbox(); | 3423 return ref_count.first.mailbox() == mailbox.mailbox(); |
3424 }); | 3424 }); |
3425 return it != texture_ref_counts_.end(); | 3425 return it != texture_ref_counts_.end(); |
3426 } | 3426 } |
3427 | 3427 |
3428 } // namespace content | 3428 } // namespace content |
OLD | NEW |