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

Side by Side Diff: ppapi/thunk/ppb_image_data_thunk.cc

Issue 8849003: Rename the shared_impl resource files to give them more regular names. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/thunk/ppb_char_set_thunk.cc ('k') | ppapi/thunk/ppb_url_request_info_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Deleted: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/c/pp_errors.h" 5 #include "ppapi/c/pp_errors.h"
6 #include "ppapi/c/ppb_image_data.h" 6 #include "ppapi/c/ppb_image_data.h"
7 #include "ppapi/shared_impl/image_data_impl.h" 7 #include "ppapi/shared_impl/ppb_image_data_shared.h"
8 #include "ppapi/thunk/enter.h" 8 #include "ppapi/thunk/enter.h"
9 #include "ppapi/thunk/ppb_image_data_api.h" 9 #include "ppapi/thunk/ppb_image_data_api.h"
10 #include "ppapi/thunk/resource_creation_api.h" 10 #include "ppapi/thunk/resource_creation_api.h"
11 #include "ppapi/thunk/thunk.h" 11 #include "ppapi/thunk/thunk.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 namespace thunk { 14 namespace thunk {
15 15
16 namespace { 16 namespace {
17 17
18 PP_ImageDataFormat GetNativeImageDataFormat() { 18 PP_ImageDataFormat GetNativeImageDataFormat() {
19 return ppapi::ImageDataImpl::GetNativeImageDataFormat(); 19 return ppapi::PPB_ImageData_Shared::GetNativeImageDataFormat();
20 } 20 }
21 21
22 PP_Bool IsImageDataFormatSupported(PP_ImageDataFormat format) { 22 PP_Bool IsImageDataFormatSupported(PP_ImageDataFormat format) {
23 return ppapi::ImageDataImpl::IsImageDataFormatSupported(format) 23 return ppapi::PPB_ImageData_Shared::IsImageDataFormatSupported(format)
24 ? PP_TRUE : PP_FALSE; 24 ? PP_TRUE : PP_FALSE;
25 } 25 }
26 26
27 PP_Resource Create(PP_Instance instance, 27 PP_Resource Create(PP_Instance instance,
28 PP_ImageDataFormat format, 28 PP_ImageDataFormat format,
29 const PP_Size* size, 29 const PP_Size* size,
30 PP_Bool init_to_zero) { 30 PP_Bool init_to_zero) {
31 EnterFunction<ResourceCreationAPI> enter(instance, true); 31 EnterFunction<ResourceCreationAPI> enter(instance, true);
32 if (enter.failed()) 32 if (enter.failed())
33 return 0; 33 return 0;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 }; 75 };
76 76
77 } // namespace 77 } // namespace
78 78
79 const PPB_ImageData* GetPPB_ImageData_Thunk() { 79 const PPB_ImageData* GetPPB_ImageData_Thunk() {
80 return &g_ppb_image_data_thunk; 80 return &g_ppb_image_data_thunk;
81 } 81 }
82 82
83 } // namespace thunk 83 } // namespace thunk
84 } // namespace ppapi 84 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_char_set_thunk.cc ('k') | ppapi/thunk/ppb_url_request_info_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698