OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use
Anchor, float scale, double durationSec) = 0; | 63 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use
Anchor, float scale, double durationSec) = 0; |
64 | 64 |
65 virtual void finishAllRendering() = 0; | 65 virtual void finishAllRendering() = 0; |
66 | 66 |
67 virtual bool isStarted() const = 0; | 67 virtual bool isStarted() const = 0; |
68 | 68 |
69 // Attempts to initialize a context to use for rendering. Returns false if t
he context could not be created. | 69 // Attempts to initialize a context to use for rendering. Returns false if t
he context could not be created. |
70 // The context will not be used and no frames may be produced until initiali
zeLayerRenderer() is called. | 70 // The context will not be used and no frames may be produced until initiali
zeLayerRenderer() is called. |
71 virtual bool initializeContext() = 0; | 71 virtual bool initializeContext() = 0; |
72 | 72 |
| 73 // Indicates that the compositing surface associated with our context is rea
dy to use. |
| 74 virtual void setSurfaceReady() = 0; |
| 75 |
73 // Attempts to initialize the layer renderer. Returns false if the context i
sn't usable for compositing. | 76 // Attempts to initialize the layer renderer. Returns false if the context i
sn't usable for compositing. |
74 virtual bool initializeLayerRenderer() = 0; | 77 virtual bool initializeLayerRenderer() = 0; |
75 | 78 |
76 // Attempts to recreate the context and layer renderer after a context lost.
Returns false if the renderer couldn't be | 79 // Attempts to recreate the context and layer renderer after a context lost.
Returns false if the renderer couldn't be |
77 // reinitialized. | 80 // reinitialized. |
78 virtual bool recreateContext() = 0; | 81 virtual bool recreateContext() = 0; |
79 | 82 |
80 virtual int compositorIdentifier() const = 0; | 83 virtual int compositorIdentifier() const = 0; |
81 | 84 |
82 virtual const LayerRendererCapabilities& layerRendererCapabilities() const =
0; | 85 virtual const LayerRendererCapabilities& layerRendererCapabilities() const =
0; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 #endif | 118 #endif |
116 | 119 |
117 protected: | 120 protected: |
118 CCProxy(); | 121 CCProxy(); |
119 friend class DebugScopedSetImplThread; | 122 friend class DebugScopedSetImplThread; |
120 }; | 123 }; |
121 | 124 |
122 } | 125 } |
123 | 126 |
124 #endif | 127 #endif |
OLD | NEW |