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

Unified Diff: ppapi/proxy/graphics_2d_resource.cc

Issue 14335005: Pepper: Autogenerate thunk for PPB_Graphics2D. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased (file deletions in another commit) Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/graphics_2d_resource.h ('k') | ppapi/proxy/resource_creation_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/graphics_2d_resource.cc
diff --git a/ppapi/proxy/graphics_2d_resource.cc b/ppapi/proxy/graphics_2d_resource.cc
index 4dc00ba9b4ff925ba51fd821a8f33b89ba85451c..3bad2e4e13cd1bc42fb266d1b7a1db7e5e735db0 100644
--- a/ppapi/proxy/graphics_2d_resource.cc
+++ b/ppapi/proxy/graphics_2d_resource.cc
@@ -99,29 +99,24 @@ void Graphics2DResource::ReplaceContents(PP_Resource image_data) {
image_object->host_resource()));
}
-bool Graphics2DResource::SetScale(float scale) {
+PP_Bool Graphics2DResource::SetScale(float scale) {
if (scale <= 0.0f)
- return false;
+ return PP_FALSE;
Post(RENDERER, PpapiHostMsg_Graphics2D_Dev_SetScale(scale));
scale_ = scale;
- return true;
+ return PP_TRUE;
}
float Graphics2DResource::GetScale() {
return scale_;
}
-int32_t Graphics2DResource::Flush(scoped_refptr<TrackedCallback> callback,
- PP_Resource* old_image_data) {
+int32_t Graphics2DResource::Flush(scoped_refptr<TrackedCallback> callback) {
// If host is not even created, return failure immediately. This can happen
// when failed to initialize (in constructor).
if (!sent_create_to_renderer())
return PP_ERROR_FAILED;
- // We don't support this feature, it's for in-renderer only.
- if (old_image_data)
- *old_image_data = 0;
-
if (TrackedCallback::IsPending(current_flush_callback_))
return PP_ERROR_INPROGRESS; // Can't have >1 flush pending.
current_flush_callback_ = callback;
« no previous file with comments | « ppapi/proxy/graphics_2d_resource.h ('k') | ppapi/proxy/resource_creation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698