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

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

Issue 7082036: Convert more interfaces to the new thunk system. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
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/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
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #if defined(OS_WIN) 69 #if defined(OS_WIN)
70 transport_dib_.reset(TransportDIB::CreateWithHandle(handle)); 70 transport_dib_.reset(TransportDIB::CreateWithHandle(handle));
71 #else 71 #else
72 transport_dib_.reset(TransportDIB::Map(handle)); 72 transport_dib_.reset(TransportDIB::Map(handle));
73 #endif 73 #endif
74 } 74 }
75 75
76 ImageData::~ImageData() { 76 ImageData::~ImageData() {
77 } 77 }
78 78
79 ::ppapi::thunk::PPB_ImageData_API* ImageData::AsImageData_API() { 79 ::ppapi::thunk::PPB_ImageData_API* ImageData::AsPPB_ImageData_API() {
80 return this; 80 return this;
81 } 81 }
82 82
83 ImageData* ImageData::AsImageData() { 83 ImageData* ImageData::AsImageData() {
84 return this; 84 return this;
85 } 85 }
86 86
87 PP_Bool ImageData::Describe(PP_ImageDataDesc* desc) { 87 PP_Bool ImageData::Describe(PP_ImageDataDesc* desc) {
88 memcpy(desc, &desc_, sizeof(PP_ImageDataDesc)); 88 memcpy(desc, &desc_, sizeof(PP_ImageDataDesc));
89 return PP_TRUE; 89 return PP_TRUE;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 return reinterpret_cast<ImageHandle>(i); 122 return reinterpret_cast<ImageHandle>(i);
123 #elif defined(OS_MACOSX) 123 #elif defined(OS_MACOSX)
124 return ImageHandle(i, false); 124 return ImageHandle(i, false);
125 #else 125 #else
126 return static_cast<ImageHandle>(i); 126 return static_cast<ImageHandle>(i);
127 #endif 127 #endif
128 } 128 }
129 129
130 } // namespace proxy 130 } // namespace proxy
131 } // namespace pp 131 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698