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

Side by Side Diff: ppapi/proxy/ppb_image_data_proxy.cc

Issue 10351002: ui: Move surface/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gpu DEPS Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/DEPS ('k') | ui/gfx/surface/OWNERS » ('j') | 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 "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 <vector> 9 #include <vector>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "ppapi/c/pp_completion_callback.h" 13 #include "ppapi/c/pp_completion_callback.h"
14 #include "ppapi/c/pp_errors.h" 14 #include "ppapi/c/pp_errors.h"
15 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/proxy/plugin_dispatcher.h" 16 #include "ppapi/proxy/plugin_dispatcher.h"
17 #include "ppapi/proxy/plugin_resource_tracker.h" 17 #include "ppapi/proxy/plugin_resource_tracker.h"
18 #include "ppapi/proxy/ppapi_messages.h" 18 #include "ppapi/proxy/ppapi_messages.h"
19 #include "ppapi/shared_impl/host_resource.h" 19 #include "ppapi/shared_impl/host_resource.h"
20 #include "ppapi/shared_impl/resource.h" 20 #include "ppapi/shared_impl/resource.h"
21 #include "ppapi/thunk/enter.h" 21 #include "ppapi/thunk/enter.h"
22 #include "ppapi/thunk/thunk.h" 22 #include "ppapi/thunk/thunk.h"
23 23
24 #if !defined(OS_NACL) 24 #if !defined(OS_NACL)
25 #include "skia/ext/platform_canvas.h" 25 #include "skia/ext/platform_canvas.h"
26 #include "ui/gfx/surface/transport_dib.h" 26 #include "ui/surface/transport_dib.h"
27 #endif 27 #endif
28 28
29 namespace ppapi { 29 namespace ppapi {
30 namespace proxy { 30 namespace proxy {
31 31
32 ImageData::ImageData(const HostResource& resource, 32 ImageData::ImageData(const HostResource& resource,
33 const PP_ImageDataDesc& desc, 33 const PP_ImageDataDesc& desc,
34 ImageHandle handle) 34 ImageHandle handle)
35 : Resource(OBJECT_IS_PROXY, resource), 35 : Resource(OBJECT_IS_PROXY, resource),
36 desc_(desc) { 36 desc_(desc) {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 ImageHandle ih = ImageData::HandleFromInt(handle); 199 ImageHandle ih = ImageData::HandleFromInt(handle);
200 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false); 200 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false);
201 #else 201 #else
202 *result_image_handle = ImageData::HandleFromInt(handle); 202 *result_image_handle = ImageData::HandleFromInt(handle);
203 #endif 203 #endif
204 } 204 }
205 } 205 }
206 206
207 } // namespace proxy 207 } // namespace proxy
208 } // namespace ppapi 208 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/DEPS ('k') | ui/gfx/surface/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698