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

Unified Diff: ppapi/thunk/ppb_graphics_2d_thunk.cc

Issue 12989006: Move HiDPI-related Pepper interfaces to stable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/thunk/interfaces_ppb_public_stable.h ('k') | ppapi/thunk/ppb_view_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_graphics_2d_thunk.cc
diff --git a/ppapi/thunk/ppb_graphics_2d_thunk.cc b/ppapi/thunk/ppb_graphics_2d_thunk.cc
index e6c03663c64e6a4f87252d7411b69f29b3b8d82e..073129d05382aec76a63d6bc3db0bc12b6061008 100644
--- a/ppapi/thunk/ppb_graphics_2d_thunk.cc
+++ b/ppapi/thunk/ppb_graphics_2d_thunk.cc
@@ -93,7 +93,7 @@ float GetScale(PP_Resource graphics_2d) {
return enter.object()->GetScale();
}
-const PPB_Graphics2D g_ppb_graphics_2d_thunk = {
+const PPB_Graphics2D_1_0 g_ppb_graphics_2d_1_0_thunk = {
&Create,
&IsGraphics2D,
&Describe,
@@ -103,6 +103,18 @@ const PPB_Graphics2D g_ppb_graphics_2d_thunk = {
&Flush
};
+const PPB_Graphics2D_1_1 g_ppb_graphics_2d_1_1_thunk = {
+ &Create,
+ &IsGraphics2D,
+ &Describe,
+ &PaintImageData,
+ &Scroll,
+ &ReplaceContents,
+ &Flush,
+ &SetScale,
+ &GetScale
+};
+
const PPB_Graphics2D_Dev g_ppb_graphics_2d_dev_thunk = {
&SetScale,
&GetScale
@@ -111,7 +123,11 @@ const PPB_Graphics2D_Dev g_ppb_graphics_2d_dev_thunk = {
} // namespace
const PPB_Graphics2D_1_0* GetPPB_Graphics2D_1_0_Thunk() {
- return &g_ppb_graphics_2d_thunk;
+ return &g_ppb_graphics_2d_1_0_thunk;
+}
+
+const PPB_Graphics2D_1_1* GetPPB_Graphics2D_1_1_Thunk() {
+ return &g_ppb_graphics_2d_1_1_thunk;
}
const PPB_Graphics2D_Dev_0_1* GetPPB_Graphics2D_Dev_0_1_Thunk() {
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_stable.h ('k') | ppapi/thunk/ppb_view_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698