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

Side by Side Diff: android_webview/browser/shared_renderer_state_client.h

Issue 1816283005: Move SharedRendererState ownership to AwContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: All tests passing Created 4 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698