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

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

Issue 6981001: Make the Pepper proxy support in-process font rendering. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/ppapi_param_traits.h ('k') | ppapi/proxy/ppb_font_proxy.h » ('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) 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/ppapi_param_traits.h" 5 #include "ppapi/proxy/ppapi_param_traits.h"
6 6
7 #include <string.h> // For memcpy 7 #include <string.h> // For memcpy
8 8
9 #include "ppapi/c/dev/pp_file_info_dev.h" 9 #include "ppapi/c/dev/pp_file_info_dev.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 ParamTraits<pp::proxy::SerializedVar>::Read(m, iter, &r->path) && 260 ParamTraits<pp::proxy::SerializedVar>::Read(m, iter, &r->path) &&
261 ParamTraits<pp::proxy::SerializedVar>::Read(m, iter, &r->name); 261 ParamTraits<pp::proxy::SerializedVar>::Read(m, iter, &r->name);
262 } 262 }
263 263
264 // static 264 // static
265 void ParamTraits<pp::proxy::PPBFileRef_CreateInfo>::Log( 265 void ParamTraits<pp::proxy::PPBFileRef_CreateInfo>::Log(
266 const param_type& p, 266 const param_type& p,
267 std::string* l) { 267 std::string* l) {
268 } 268 }
269 269
270 // PPBFont_DrawTextAt_Params ---------------------------------------------------
271
272 // static
273 void ParamTraits<pp::proxy::PPBFont_DrawTextAt_Params>::Write(
274 Message* m,
275 const param_type& p) {
276 ParamTraits<pp::proxy::HostResource>::Write(m, p.font);
277 ParamTraits<pp::proxy::HostResource>::Write(m, p.image_data);
278 ParamTraits<PP_Bool>::Write(m, p.text_is_rtl);
279 ParamTraits<PP_Bool>::Write(m, p.override_direction);
280 ParamTraits<PP_Point>::Write(m, p.position);
281 ParamTraits<uint32_t>::Write(m, p.color);
282 ParamTraits<PP_Rect>::Write(m, p.clip);
283 ParamTraits<bool>::Write(m, p.clip_is_null);
284 ParamTraits<PP_Bool>::Write(m, p.image_data_is_opaque);
285 }
286
287 // static
288 bool ParamTraits<pp::proxy::PPBFont_DrawTextAt_Params>::Read(
289 const Message* m,
290 void** iter,
291 param_type* r) {
292 return
293 ParamTraits<pp::proxy::HostResource>::Read(m, iter, &r->font) &&
294 ParamTraits<pp::proxy::HostResource>::Read(m, iter,
295 &r->image_data) &&
296 ParamTraits<PP_Bool>::Read(m, iter, &r->text_is_rtl) &&
297 ParamTraits<PP_Bool>::Read(m, iter, &r->override_direction) &&
298 ParamTraits<PP_Point>::Read(m, iter, &r->position) &&
299 ParamTraits<uint32_t>::Read(m, iter, &r->color) &&
300 ParamTraits<PP_Rect>::Read(m, iter, &r->clip) &&
301 ParamTraits<bool>::Read(m, iter, &r->clip_is_null) &&
302 ParamTraits<PP_Bool>::Read(m, iter, &r->image_data_is_opaque);
303 }
304
305 // static
306 void ParamTraits<pp::proxy::PPBFont_DrawTextAt_Params>::Log(
307 const param_type& p,
308 std::string* l) {
309 }
310
311 // PPBURLLoader_UpdateProgress_Params ------------------------------------------ 270 // PPBURLLoader_UpdateProgress_Params ------------------------------------------
312 271
313 // static 272 // static
314 void ParamTraits<pp::proxy::PPBURLLoader_UpdateProgress_Params>::Write( 273 void ParamTraits<pp::proxy::PPBURLLoader_UpdateProgress_Params>::Write(
315 Message* m, 274 Message* m,
316 const param_type& p) { 275 const param_type& p) {
317 ParamTraits<PP_Instance>::Write(m, p.instance); 276 ParamTraits<PP_Instance>::Write(m, p.instance);
318 ParamTraits<pp::proxy::HostResource>::Write(m, p.resource); 277 ParamTraits<pp::proxy::HostResource>::Write(m, p.resource);
319 ParamTraits<int64_t>::Write(m, p.bytes_sent); 278 ParamTraits<int64_t>::Write(m, p.bytes_sent);
320 ParamTraits<int64_t>::Write(m, p.total_bytes_to_be_sent); 279 ParamTraits<int64_t>::Write(m, p.total_bytes_to_be_sent);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 param_type* r) { 466 param_type* r) {
508 return r->ReadFromMessage(m, iter); 467 return r->ReadFromMessage(m, iter);
509 } 468 }
510 469
511 // static 470 // static
512 void ParamTraits<pp::proxy::SerializedFlashMenu>::Log(const param_type& p, 471 void ParamTraits<pp::proxy::SerializedFlashMenu>::Log(const param_type& p,
513 std::string* l) { 472 std::string* l) {
514 } 473 }
515 474
516 } // namespace IPC 475 } // namespace IPC
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_param_traits.h ('k') | ppapi/proxy/ppb_font_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698