| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   69 class CCScheduler : CCFrameRateControllerClient { |   69 class CCScheduler : CCFrameRateControllerClient { | 
|   70     WTF_MAKE_NONCOPYABLE(CCScheduler); |   70     WTF_MAKE_NONCOPYABLE(CCScheduler); | 
|   71 public: |   71 public: | 
|   72     static PassOwnPtr<CCScheduler> create(CCSchedulerClient* client, PassOwnPtr<
     CCFrameRateController> frameRateController) |   72     static PassOwnPtr<CCScheduler> create(CCSchedulerClient* client, PassOwnPtr<
     CCFrameRateController> frameRateController) | 
|   73     { |   73     { | 
|   74         return adoptPtr(new CCScheduler(client, frameRateController)); |   74         return adoptPtr(new CCScheduler(client, frameRateController)); | 
|   75     } |   75     } | 
|   76  |   76  | 
|   77     virtual ~CCScheduler(); |   77     virtual ~CCScheduler(); | 
|   78  |   78  | 
 |   79     void setCanBeginFrame(bool); | 
 |   80  | 
|   79     void setVisible(bool); |   81     void setVisible(bool); | 
|   80  |   82  | 
|   81     void setNeedsCommit(); |   83     void setNeedsCommit(); | 
|   82  |   84  | 
|   83     // Like setNeedsCommit(), but ensures a commit will definitely happen even i
     f we are not visible. |   85     // Like setNeedsCommit(), but ensures a commit will definitely happen even i
     f we are not visible. | 
|   84     void setNeedsForcedCommit(); |   86     void setNeedsForcedCommit(); | 
|   85  |   87  | 
|   86     void setNeedsRedraw(); |   88     void setNeedsRedraw(); | 
|   87  |   89  | 
|   88     // Like setNeedsRedraw(), but ensures the draw will definitely happen even i
     f we are not visible. |   90     // Like setNeedsRedraw(), but ensures the draw will definitely happen even i
     f we are not visible. | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|  110  |  112  | 
|  111     CCSchedulerClient* m_client; |  113     CCSchedulerClient* m_client; | 
|  112     OwnPtr<CCFrameRateController> m_frameRateController; |  114     OwnPtr<CCFrameRateController> m_frameRateController; | 
|  113     CCSchedulerStateMachine m_stateMachine; |  115     CCSchedulerStateMachine m_stateMachine; | 
|  114     bool m_updateMoreResourcesPending; |  116     bool m_updateMoreResourcesPending; | 
|  115 }; |  117 }; | 
|  116  |  118  | 
|  117 } |  119 } | 
|  118  |  120  | 
|  119 #endif // CCScheduler_h |  121 #endif // CCScheduler_h | 
| OLD | NEW |