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

Unified Diff: ppapi/cpp/graphics_2d.cc

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 1 month 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 | « content/renderer/pepper/renderer_ppapi_host_impl.cc ('k') | ppapi/host/ppapi_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/graphics_2d.cc
diff --git a/ppapi/cpp/graphics_2d.cc b/ppapi/cpp/graphics_2d.cc
index 69bba9c8234028f8549acb8e05f9171f5160c930..f4cd6451babf5c73c4a271f09fd9edbc021eba94 100644
--- a/ppapi/cpp/graphics_2d.cc
+++ b/ppapi/cpp/graphics_2d.cc
@@ -62,9 +62,9 @@ void Graphics2D::PaintImageData(const ImageData& image,
if (!has_interface<PPB_Graphics2D_1_0>())
return;
get_interface<PPB_Graphics2D_1_0>()->PaintImageData(pp_resource(),
- image.pp_resource(),
- &top_left.pp_point(),
- NULL);
+ image.pp_resource(),
+ &top_left.pp_point(),
+ NULL);
}
void Graphics2D::PaintImageData(const ImageData& image,
@@ -73,24 +73,24 @@ void Graphics2D::PaintImageData(const ImageData& image,
if (!has_interface<PPB_Graphics2D_1_0>())
return;
get_interface<PPB_Graphics2D_1_0>()->PaintImageData(pp_resource(),
- image.pp_resource(),
- &top_left.pp_point(),
- &src_rect.pp_rect());
+ image.pp_resource(),
+ &top_left.pp_point(),
+ &src_rect.pp_rect());
}
void Graphics2D::Scroll(const Rect& clip, const Point& amount) {
if (!has_interface<PPB_Graphics2D_1_0>())
return;
get_interface<PPB_Graphics2D_1_0>()->Scroll(pp_resource(),
- &clip.pp_rect(),
- &amount.pp_point());
+ &clip.pp_rect(),
+ &amount.pp_point());
}
void Graphics2D::ReplaceContents(ImageData* image) {
if (!has_interface<PPB_Graphics2D_1_0>())
return;
get_interface<PPB_Graphics2D_1_0>()->ReplaceContents(pp_resource(),
- image->pp_resource());
+ image->pp_resource());
// On success, reset the image data. This is to help prevent people
// from continuing to use the resource which will result in artifacts.
@@ -100,8 +100,8 @@ void Graphics2D::ReplaceContents(ImageData* image) {
int32_t Graphics2D::Flush(const CompletionCallback& cc) {
if (!has_interface<PPB_Graphics2D_1_0>())
return cc.MayForce(PP_ERROR_NOINTERFACE);
- return get_interface<PPB_Graphics2D_1_0>()->Flush(pp_resource(),
- cc.pp_completion_callback());
+ return get_interface<PPB_Graphics2D_1_0>()->Flush(
+ pp_resource(), cc.pp_completion_callback());
}
} // namespace pp
« no previous file with comments | « content/renderer/pepper/renderer_ppapi_host_impl.cc ('k') | ppapi/host/ppapi_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698