summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/graphics_2d.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-27 20:23:19 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-27 20:23:19 +0000
commit09af0f7661d6a5971804c9a8ec47bbd038a5de78 (patch)
treef2c56e46b629df59a3a1781ac54a7d43d170ea31 /ppapi/cpp/graphics_2d.h
parent7e26ac973ede2fd0576d40086a437a3177668ea1 (diff)
downloadchromium_src-09af0f7661d6a5971804c9a8ec47bbd038a5de78.zip
chromium_src-09af0f7661d6a5971804c9a8ec47bbd038a5de78.tar.gz
chromium_src-09af0f7661d6a5971804c9a8ec47bbd038a5de78.tar.bz2
Convert resources to take an instance key instead of an Instance*.
Review URL: https://chromiumcodereview.appspot.com/9381010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123795 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/graphics_2d.h')
-rw-r--r--ppapi/cpp/graphics_2d.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/ppapi/cpp/graphics_2d.h b/ppapi/cpp/graphics_2d.h
index c30a43c..0ce6641 100644
--- a/ppapi/cpp/graphics_2d.h
+++ b/ppapi/cpp/graphics_2d.h
@@ -16,7 +16,7 @@ namespace pp {
class CompletionCallback;
class ImageData;
-class Instance;
+class InstanceHandle;
class Point;
class Rect;
@@ -37,9 +37,12 @@ class Graphics2D : public Resource {
/// in the browser, resulting object will be is_null() if the allocation
/// failed.
///
- /// @param[in] instance The module instance.
+ /// @param[in] instance The instance with which this resource will be
+ /// associated.
+ ///
/// @param[in] size The size of the 2D graphics context in the browser,
/// measured in device pixels.
+ ///
/// @param[in] is_always_opaque Set the <code>is_always_opaque</code> flag
/// to true if you know that you will be painting only opaque data to this
/// context. This option will disable blending when compositing the module
@@ -49,7 +52,9 @@ class Graphics2D : public Resource {
/// always be set to 0xFF or there may be painting artifacts. The alpha values
/// overwrite the destination alpha values without blending when
/// <code>is_always_opaque</code> is true.
- Graphics2D(Instance* instance, const Size& size, bool is_always_opaque);
+ Graphics2D(const InstanceHandle& instance,
+ const Size& size,
+ bool is_always_opaque);
/// A destructor that decrements the reference count of a
/// <code>Graphics2D</code> object made using the previous copy constructor.