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

Side by Side Diff: ppapi/cpp/graphics_3d.h

Issue 13238002: [PPAPI] Documentation fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge yet again 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/private/ppb_content_decryptor_private.h ('k') | ppapi/cpp/input_event.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef PPAPI_CPP_GRAPHICS_3D_H_
6 #define PPAPI_CPP_GRAPHICS_3D_H_ 6 #define PPAPI_CPP_GRAPHICS_3D_H_
7 7
8 #include "ppapi/c/ppb_graphics_3d.h" 8 #include "ppapi/c/ppb_graphics_3d.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 /// <code>PP_GRAPHICS3DATTRIB_NONE</code>. 102 /// <code>PP_GRAPHICS3DATTRIB_NONE</code>.
103 /// 103 ///
104 /// The following error codes may be returned on failure: 104 /// The following error codes may be returned on failure:
105 /// 105 ///
106 /// PP_ERROR_BADRESOURCE if context is invalid. 106 /// PP_ERROR_BADRESOURCE if context is invalid.
107 /// PP_ERROR_BADARGUMENT if <code>attrib_list</code> is NULL or any attribute 107 /// PP_ERROR_BADARGUMENT if <code>attrib_list</code> is NULL or any attribute
108 /// in the <code>attrib_list</code> is not a valid attribute. 108 /// in the <code>attrib_list</code> is not a valid attribute.
109 /// 109 ///
110 /// <strong>Example:</strong> 110 /// <strong>Example:</strong>
111 /// 111 ///
112 /// <code> 112 /// @code
113 /// int attrib_list[] = {PP_GRAPHICS3DATTRIB_RED_SIZE, 0, 113 /// int attrib_list[] = {PP_GRAPHICS3DATTRIB_RED_SIZE, 0,
114 /// PP_GRAPHICS3DATTRIB_GREEN_SIZE, 0, 114 /// PP_GRAPHICS3DATTRIB_GREEN_SIZE, 0,
115 /// PP_GRAPHICS3DATTRIB_BLUE_SIZE, 0, 115 /// PP_GRAPHICS3DATTRIB_BLUE_SIZE, 0,
116 /// PP_GRAPHICS3DATTRIB_NONE}; 116 /// PP_GRAPHICS3DATTRIB_NONE};
117 /// GetAttribs(context, attrib_list); 117 /// GetAttribs(context, attrib_list);
118 /// int red_bits = attrib_list[1]; 118 /// int red_bits = attrib_list[1];
119 /// int green_bits = attrib_list[3]; 119 /// int green_bits = attrib_list[3];
120 /// int blue_bits = attrib_list[5]; 120 /// int blue_bits = attrib_list[5];
121 /// </code> 121 /// @endcode
122 /// 122 ///
123 /// This example retrieves the values for rgb bits in the color buffer. 123 /// This example retrieves the values for rgb bits in the color buffer.
124 int32_t GetAttribs(int32_t attrib_list[]) const; 124 int32_t GetAttribs(int32_t attrib_list[]) const;
125 125
126 /// SetAttribs() sets the values for each attribute in 126 /// SetAttribs() sets the values for each attribute in
127 /// <code>attrib_list</code>. The list has the same structure as the list 127 /// <code>attrib_list</code>. The list has the same structure as the list
128 /// used in the constructors. 128 /// used in the constructors.
129 /// 129 ///
130 /// Attributes that can be specified are: 130 /// Attributes that can be specified are:
131 /// - PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR 131 /// - PP_GRAPHICS3DATTRIB_SWAP_BEHAVIOR
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 /// 184 ///
185 /// @return An int32_t containing <code>PP_ERROR_BADRESOURCE</code> if 185 /// @return An int32_t containing <code>PP_ERROR_BADRESOURCE</code> if
186 /// context is invalid or <code>PP_ERROR_BADARGUMENT</code> if callback is 186 /// context is invalid or <code>PP_ERROR_BADARGUMENT</code> if callback is
187 /// invalid. 187 /// invalid.
188 int32_t SwapBuffers(const CompletionCallback& cc); 188 int32_t SwapBuffers(const CompletionCallback& cc);
189 }; 189 };
190 190
191 } // namespace pp 191 } // namespace pp
192 192
193 #endif // PPAPI_CPP_GRAPHICS_3D_H_ 193 #endif // PPAPI_CPP_GRAPHICS_3D_H_
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_content_decryptor_private.h ('k') | ppapi/cpp/input_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698