| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_CLIENT_H_ | |
| 6 #define ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_CLIENT_H_ | |
| 7 | |
| 8 namespace android_webview { | |
| 9 | |
| 10 class SharedRendererStateClient { | |
| 11 public: | |
| 12 virtual void OnParentDrawConstraintsUpdated() = 0; | |
| 13 | |
| 14 // Request DrawGL to be in called AwDrawGLInfo::kModeProcess type. | |
| 15 // |wait_for_completion| will cause the call to block until DrawGL has | |
| 16 // happened. The callback may never be made, and the mode may be promoted to | |
| 17 // kModeDraw. | |
| 18 virtual bool RequestDrawGL(bool wait_for_completion) = 0; | |
| 19 | |
| 20 // Call postInvalidateOnAnimation for invalidations. This is only used to | |
| 21 // synchronize draw functor destruction. | |
| 22 virtual void DetachFunctorFromView() = 0; | |
| 23 | |
| 24 protected: | |
| 25 virtual ~SharedRendererStateClient() {} | |
| 26 }; | |
| 27 | |
| 28 } // namespace android_webview | |
| 29 | |
| 30 #endif // ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_CLIENT_H_ | |
| OLD | NEW |