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 "ppapi/proxy/ppb_image_data_proxy.h" | 5 #include "ppapi/proxy/ppb_image_data_proxy.h" |
6 | 6 |
7 #include <string.h> // For memcpy | 7 #include <string.h> // For memcpy |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
13 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
14 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
16 #include "ppapi/c/pp_completion_callback.h" | 17 #include "ppapi/c/pp_completion_callback.h" |
17 #include "ppapi/c/pp_errors.h" | 18 #include "ppapi/c/pp_errors.h" |
18 #include "ppapi/c/pp_resource.h" | 19 #include "ppapi/c/pp_resource.h" |
19 #include "ppapi/proxy/enter_proxy.h" | 20 #include "ppapi/proxy/enter_proxy.h" |
20 #include "ppapi/proxy/host_dispatcher.h" | 21 #include "ppapi/proxy/host_dispatcher.h" |
21 #include "ppapi/proxy/plugin_dispatcher.h" | 22 #include "ppapi/proxy/plugin_dispatcher.h" |
22 #include "ppapi/proxy/plugin_globals.h" | 23 #include "ppapi/proxy/plugin_globals.h" |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 // still cached in our process, the proxy still holds a reference so we can | 689 // still cached in our process, the proxy still holds a reference so we can |
689 // remove the one the renderer just sent is. If the proxy no longer holds a | 690 // remove the one the renderer just sent is. If the proxy no longer holds a |
690 // reference, we released everything and we should also release the one the | 691 // reference, we released everything and we should also release the one the |
691 // renderer just sent us. | 692 // renderer just sent us. |
692 dispatcher()->Send(new PpapiHostMsg_PPBCore_ReleaseResource( | 693 dispatcher()->Send(new PpapiHostMsg_PPBCore_ReleaseResource( |
693 API_ID_PPB_CORE, old_image_data)); | 694 API_ID_PPB_CORE, old_image_data)); |
694 } | 695 } |
695 | 696 |
696 } // namespace proxy | 697 } // namespace proxy |
697 } // namespace ppapi | 698 } // namespace ppapi |
OLD | NEW |