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 #include "base/android/scoped_java_ref.h" | |
9 #include "ui/gfx/geometry/point.h" | |
10 #include "ui/gfx/geometry/size_f.h" | |
11 #include "ui/gfx/geometry/vector2d_f.h" | |
boliu
2016/03/30 16:12:13
none of these includes are needed
Tobias Sargeant
2016/03/30 17:17:17
Done.
| |
12 | |
13 namespace android_webview { | |
14 | |
15 class SharedRendererStateClient { | |
16 public: | |
17 virtual void UpdateParentDrawConstraints() = 0; | |
18 | |
19 // Request DrawGL to be in called AwDrawGLInfo::kModeProcess type. | |
20 // |wait_for_completion| will cause the call to block until DrawGL has | |
21 // happened. The callback may never be made, and the mode may be promoted to | |
22 // kModeDraw. | |
23 virtual bool RequestDrawGL(bool wait_for_completion) = 0; | |
24 | |
25 // Call postInvalidateOnAnimation for invalidations. This is only used to | |
26 // synchronize draw functor destruction. | |
27 virtual void DetachFunctorFromView() = 0; | |
28 | |
29 protected: | |
30 virtual ~SharedRendererStateClient() {} | |
31 }; | |
32 | |
33 } // namespace android_webview | |
34 | |
35 #endif // ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_CLIENT_H_ | |
OLD | NEW |