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

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

Issue 7587011: Remove the old type system for proxied resources. These were no longer being used. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: New one Created 9 years, 4 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/ppb_image_data_proxy.h ('k') | ppapi/proxy/ppb_pdf_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) 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::AsPPB_ImageData_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() {
84 return this;
85 }
86
87 PP_Bool ImageData::Describe(PP_ImageDataDesc* desc) { 83 PP_Bool ImageData::Describe(PP_ImageDataDesc* desc) {
88 memcpy(desc, &desc_, sizeof(PP_ImageDataDesc)); 84 memcpy(desc, &desc_, sizeof(PP_ImageDataDesc));
89 return PP_TRUE; 85 return PP_TRUE;
90 } 86 }
91 87
92 void* ImageData::Map() { 88 void* ImageData::Map() {
93 if (!mapped_canvas_.get()) { 89 if (!mapped_canvas_.get()) {
94 mapped_canvas_.reset(transport_dib_->GetPlatformCanvas(desc_.size.width, 90 mapped_canvas_.reset(transport_dib_->GetPlatformCanvas(desc_.size.width,
95 desc_.size.height)); 91 desc_.size.height));
96 if (!mapped_canvas_.get()) 92 if (!mapped_canvas_.get())
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 return reinterpret_cast<ImageHandle>(i); 125 return reinterpret_cast<ImageHandle>(i);
130 #elif defined(OS_MACOSX) 126 #elif defined(OS_MACOSX)
131 return ImageHandle(i, false); 127 return ImageHandle(i, false);
132 #else 128 #else
133 return static_cast<ImageHandle>(i); 129 return static_cast<ImageHandle>(i);
134 #endif 130 #endif
135 } 131 }
136 132
137 } // namespace proxy 133 } // namespace proxy
138 } // namespace pp 134 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_image_data_proxy.h ('k') | ppapi/proxy/ppb_pdf_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698