| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 bool usingGpuMemoryManager; | 121 bool usingGpuMemoryManager; |
| 122 bool usingDiscardFramebuffer; | 122 bool usingDiscardFramebuffer; |
| 123 int maxTextureSize; | 123 int maxTextureSize; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 class CCLayerTreeHost : public RefCounted<CCLayerTreeHost>, public RateLimiterCl
ient { | 126 class CCLayerTreeHost : public RefCounted<CCLayerTreeHost>, public RateLimiterCl
ient { |
| 127 public: | 127 public: |
| 128 static PassRefPtr<CCLayerTreeHost> create(CCLayerTreeHostClient*, const CCSe
ttings&); | 128 static PassRefPtr<CCLayerTreeHost> create(CCLayerTreeHostClient*, const CCSe
ttings&); |
| 129 virtual ~CCLayerTreeHost(); | 129 virtual ~CCLayerTreeHost(); |
| 130 | 130 |
| 131 void setSurfaceReady(); |
| 132 |
| 131 // Returns true if any CCLayerTreeHost is alive. | 133 // Returns true if any CCLayerTreeHost is alive. |
| 132 static bool anyLayerTreeHostInstanceExists(); | 134 static bool anyLayerTreeHostInstanceExists(); |
| 133 | 135 |
| 134 static bool needsFilterContext() { return s_needsFilterContext; } | 136 static bool needsFilterContext() { return s_needsFilterContext; } |
| 135 static void setNeedsFilterContext(bool needsFilterContext) { s_needsFilterCo
ntext = needsFilterContext; } | 137 static void setNeedsFilterContext(bool needsFilterContext) { s_needsFilterCo
ntext = needsFilterContext; } |
| 136 | 138 |
| 137 // CCLayerTreeHost interface to CCProxy. | 139 // CCLayerTreeHost interface to CCProxy. |
| 138 void willBeginFrame() { m_client->willBeginFrame(); } | 140 void willBeginFrame() { m_client->willBeginFrame(); } |
| 139 void updateAnimations(double monotonicFrameBeginTime); | 141 void updateAnimations(double monotonicFrameBeginTime); |
| 140 void layout(); | 142 void layout(); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 Color m_backgroundColor; | 281 Color m_backgroundColor; |
| 280 | 282 |
| 281 TextureList m_deleteTextureAfterCommitList; | 283 TextureList m_deleteTextureAfterCommitList; |
| 282 size_t m_partialTextureUpdateRequests; | 284 size_t m_partialTextureUpdateRequests; |
| 283 static bool s_needsFilterContext; | 285 static bool s_needsFilterContext; |
| 284 }; | 286 }; |
| 285 | 287 |
| 286 } | 288 } |
| 287 | 289 |
| 288 #endif | 290 #endif |
| OLD | NEW |