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

Unified Diff: ppapi/cpp/graphics_2d.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 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/cpp/fullscreen.cc ('k') | ppapi/cpp/graphics_2d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/graphics_2d.h
diff --git a/ppapi/cpp/graphics_2d.h b/ppapi/cpp/graphics_2d.h
index c30a43c9daf17b9a4804dc743dd5a28d97024537..0ce664163eda867c92e6ca3a428ad68261c1c38f 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.
« no previous file with comments | « ppapi/cpp/fullscreen.cc ('k') | ppapi/cpp/graphics_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698