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

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

Issue 298023004: [PPAPI] Compositor API implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor_api_def_new
Patch Set: Fix link issue Created 6 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
« no previous file with comments | « ppapi/proxy/ppapi_param_traits.h ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('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/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/pp_resource.h" 9 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/proxy/ppapi_messages.h" 10 #include "ppapi/proxy/ppapi_messages.h"
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 // No default so the compiler will warn on new types. 626 // No default so the compiler will warn on new types.
627 } 627 }
628 return false; 628 return false;
629 } 629 }
630 630
631 // static 631 // static
632 void ParamTraits<ppapi::SocketOptionData>::Log(const param_type& p, 632 void ParamTraits<ppapi::SocketOptionData>::Log(const param_type& p,
633 std::string* l) { 633 std::string* l) {
634 } 634 }
635 635
636 // ppapi::CompositorLayerData --------------------------------------------------
637
638 // static
639 void ParamTraits<ppapi::CompositorLayerData::Transform>::Write(
640 Message* m,
641 const param_type& p) {
642 for (size_t i = 0; i < arraysize(p.matrix); i++)
643 ParamTraits<float>::Write(m, p.matrix[i]);
644 }
645
646 // static
647 bool ParamTraits<ppapi::CompositorLayerData::Transform>::Read(
648 const Message* m,
649 PickleIterator* iter,
650 param_type* r) {
651 for (size_t i = 0; i < arraysize(r->matrix);i++) {
652 if (!ParamTraits<float>::Read(m, iter, &r->matrix[i]))
653 return false;
654 }
655 return true;
656 }
657
658 void ParamTraits<ppapi::CompositorLayerData::Transform>::Log(
659 const param_type& p,
660 std::string* l) {
661 }
662
636 } // namespace IPC 663 } // namespace IPC
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_param_traits.h ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698