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

Side by Side Diff: content/public/browser/android/synchronous_compositor_client.h

Issue 2174203002: OnDrawHardware() implementation with async messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Further changes. Created 4 years, 4 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 virtual void DidOverscroll(SynchronousCompositor* compositor, 43 virtual void DidOverscroll(SynchronousCompositor* compositor,
44 const gfx::Vector2dF& accumulated_overscroll, 44 const gfx::Vector2dF& accumulated_overscroll,
45 const gfx::Vector2dF& latest_overscroll_delta, 45 const gfx::Vector2dF& latest_overscroll_delta,
46 const gfx::Vector2dF& current_fling_velocity) = 0; 46 const gfx::Vector2dF& current_fling_velocity) = 0;
47 47
48 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0; 48 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0;
49 49
50 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0; 50 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0;
51 51
52 virtual void OnDrawHardwareProcessFrame(
53 content::SynchronousCompositor::Frame frame) = 0;
54
52 protected: 55 protected:
53 SynchronousCompositorClient() {} 56 SynchronousCompositorClient() {}
54 virtual ~SynchronousCompositorClient() {} 57 virtual ~SynchronousCompositorClient() {}
55 58
56 private: 59 private:
57 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); 60 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient);
58 }; 61 };
59 62
60 } // namespace content 63 } // namespace content
61 64
62 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 65 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698