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

Side by Side Diff: ppapi/cpp/graphics_3d_client.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/graphics_3d.cc ('k') | ppapi/cpp/graphics_3d_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ 5 #ifndef PPAPI_CPP_GRAPHICS_3D_CLIENT_H_
6 #define PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ 6 #define PPAPI_CPP_GRAPHICS_3D_CLIENT_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/cpp/instance_handle.h"
9 10
10 /// @file 11 /// @file
11 /// This file defines the API for callbacks related to 3D. 12 /// This file defines the API for callbacks related to 3D.
12 13
13 namespace pp { 14 namespace pp {
14 15
15 class Instance;
16
17 // This class provides a C++ interface for callbacks related to 3D. You 16 // This class provides a C++ interface for callbacks related to 3D. You
18 // would normally use multiple inheritance to derive from this class in your 17 // would normally use multiple inheritance to derive from this class in your
19 // instance. 18 // instance.
20 class Graphics3DClient { 19 class Graphics3DClient {
21 public: 20 public:
22 /// 21 ///
23 /// A constructor for creating a Graphics3DClient. 22 /// A constructor for creating a Graphics3DClient.
24 /// 23 ///
25 /// @param[in] instance The instance that will own the new 24 /// @param[in] instance The instance that will own the new
26 /// <code>Graphics3DClient</code>. 25 /// <code>Graphics3DClient</code>.
27 explicit Graphics3DClient(Instance* instance); 26 explicit Graphics3DClient(const InstanceHandle& instance);
28 27
29 /// Destructor. 28 /// Destructor.
30 virtual ~Graphics3DClient(); 29 virtual ~Graphics3DClient();
31 30
32 /// Graphics3DContextLost() is a notification that the context was lost for 31 /// Graphics3DContextLost() is a notification that the context was lost for
33 /// the 3D devices. 32 /// the 3D devices.
34 virtual void Graphics3DContextLost() = 0; 33 virtual void Graphics3DContextLost() = 0;
35 34
36 private: 35 private:
37 Instance* associated_instance_; 36 InstanceHandle associated_instance_;
38 }; 37 };
39 38
40 } // namespace pp 39 } // namespace pp
41 40
42 #endif // PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ 41 #endif // PPAPI_CPP_GRAPHICS_3D_CLIENT_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/graphics_3d.cc ('k') | ppapi/cpp/graphics_3d_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698