Scaleform::GFx::AMP::Server
class Server : public RefCountBase<Server, StatAmp_Server>, public AmpServer;
AMP Server encapsulates the communication of a Scaleform application with an AMP client. This is a singleton that can be easily accessed throughout Scaleform. The object has several functions; it
- keeps track of statistics per frame
- manages the socket connection with the client
- handles received messages.
The server needs to be thread-safe, as it can be accessed from anywhere in Scaleform.
AMP::Server implements the Scaleform::AmpServer interface. This abstraction enables the Kernel to update AMP server without the Kernel having dependencies on Scaleform and AMP. Scaleform::DefaultAmpServer is a class that trivially implements AmpServer, for projects that do not initialize an AMP Server.
Method |
Description |
| |
Sets the renderer to be profiled (only one supported). | |
| |
Adds an image resource to the list of images reported by AMP. | |
Adds a loader to the list of active loaders. | |
Called by Scaleform whenever a load process is created. | |
Adds a movie to the list of movies to be profiled. | |
Adds to the total memory that AMP reports as used for sound. | |
Associates an ActionScript source code file with a handle, for later look up. | |
Adds to the number of strokes that AMP reports in the rendering graph. | |
Creates a new entry in the SWD map. | |
Advances the frame and needs to be called once per frame by the application. | |
Decrements the counter for text fields with AA for readability. | |
Used to find an instance of Movie by using memory heap | |
Retrieves the current state of the AMP server. | |
Returns the renderer statistics. | |
Retrieves the handle of the SWF file. | |
Returns the level of function profiling. | |
Retrieves the SWF file name for a given handle. | |
Retrieves the SWD debug Id for a given handle. | |
Handles an application control request message by forwarding it to the callback object. | |
Handles a request to load an image file. | |
Called from the application to handle new socket messages. | |
Generates an objects report that shows all ActionScript objects and the links between them. | |
Handles a request from AMP for an ActionScript source code file. | |
Handles the request to load the SWD file. | |
Handles a request to send the font cache texture to AMP client. | |
Updates the server with the AMP profiling settings to be used immediately upon connection. | |
Called by the Scaleform renderer whenever a glyph fails to allocate and is thus replaced by a vector representation. | |
Initializes the singleton for communication with AMP. | |
Determines whether the AMP server is in enabled/disabled state. | |
If true, adds up all the function calls that have been made from the same calling function. | |
Returns whether or not instruction profiling is active. | |
Returns whether or not instruction sampling is used for instruction profiling. | |
Determines whether the AMP server is in a paused state. | |
Determines whether frame profiling is enabled or not. | |
Opens a socket connection between the AMP sever and the client. | |
Removes an image resource from the list of images reported by AMP. | |
Removes a loader from the list of active loaders. | |
Called by Scaleform whenever a load process is finished. | |
Removes a movie from the list of movies to be profiled. | |
Increments the counter for text fields with AA for readability. | |
Removes from the total memory that the AMP reports as used for sound. | |
Removes from the number of strokes that AMP reports in the rendering graph. | |
SendLog sends a log message to the AMP client. | |
Sets the edge anti-aliasing modes in the Scaleform application. | |
Sets the custom callback that handles application-specific control messages. | |
Sets the AMP capabilities supported by the current Scaleform application. | |
Sets the port where UDP broadcast messages are sent and received. | |
Called from movie advance thread. | |
Sets the name of the Scaleform application connected to the AMP. | |
Sets a wait time for connecting with the AMP server. | |
Sets the current locale information of the Scaleform application. | |
Sets the curve tolerance in the Scaleform application. | |
Sets the limit on the memory heap allocated for the AMP server. | |
Initializes the socket library to be used by the AMP for communication. | |
Sets the port for the socket connection between the AMP and Scaleform. | |
Turns on or off the detailed memory reporting. | |
Sets the level of function profiling. | |
Sets the AMP socket implementation factory for external socket implementation. | |
Sets the stroke type in the GFx application. | |
Starts/stops recording of statistics for display when not connected to AMP server. | |
Un-initializes the singleton after communication with AMP. | |
Amp_Server.h