Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: Source/WebCore/platform/graphics/chromium/cc/CCScheduler.h

Issue 10202004: Merge 114599 - [chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress initializa… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/platform/graphics/chromium/cc/CCScheduler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/platform/graphics/chromium/cc/CCScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698