Home | History | Annotate | Download | only in cpp

Lines Matching full:code

2 // Use of this source code is governed by a BSD-style license that can be
24 /// safe to refer to a <code>pp::Instance</code> object on a background thread.
30 /// 2. <code>PP_Instance</code> would be a good identifier to use for this case.
31 /// However, using <code>PP_Instance</code> in the constructor to resources is
33 /// <code>PP_Resource</code>. Many resources have alternate constructors that
34 /// just take an existing <code>PP_Resource</code>, so the constructors would
35 /// be ambiguous. Having this wrapper around a <code>PP_Instance</code>
37 /// implicit conversion from <code>pp::Instance*</code> for prettier code on
41 /// You should always pass an <code>InstanceHandle</code> to background threads
42 /// instead of a <code>pp::Instance</code>, and use them in resource
43 /// constructors and code that may be used from background threads.
46 /// Implicit constructor for converting a <code>pp::Instance</code> to an
50 /// <code>InstanceHandle</code> will be associated.
53 /// This constructor explicitly converts a <code>PP_Instance</code> to an
55 /// resource constructors ambiguous. <code>PP_Instance</code> is just a
56 /// typedef for an integer, as is <code>PP_Resource</code>, so the compiler
60 /// <code>InstanceHandle</code> will be associated.
64 /// The pp_instance() function returns the <code>PP_Instance</code>.
66 /// @return A <code>PP_Instance</code> internal instance handle.