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

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

Issue 15002007: Delegate root layer scroll offset to android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest compile Created 7 years, 6 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 | Annotate | Revision Log
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_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
7 7
8 #include "ui/gfx/rect.h" 8 #include "ui/gfx/rect.h"
9 #include "ui/gfx/size.h" 9 #include "ui/gfx/size.h"
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // then transformed through |transform|, and finally clipped to |view_size|. 44 // then transformed through |transform|, and finally clipped to |view_size|.
45 virtual bool DemandDrawHw( 45 virtual bool DemandDrawHw(
46 gfx::Size view_size, 46 gfx::Size view_size,
47 const gfx::Transform& transform, 47 const gfx::Transform& transform,
48 gfx::Rect damage_area) = 0; 48 gfx::Rect damage_area) = 0;
49 49
50 // "On demand" SW draw, into the supplied canvas (observing the transform 50 // "On demand" SW draw, into the supplied canvas (observing the transform
51 // and clip set there-in). 51 // and clip set there-in).
52 virtual bool DemandDrawSw(SkCanvas* canvas) = 0; 52 virtual bool DemandDrawSw(SkCanvas* canvas) = 0;
53 53
54 // Should be called by the embedder after the embedder had modified the
55 // scroll offset of the root layer (as returned by
56 // SynchronousCompositorClient::GetTotalRootLayerScrollOffset).
57 virtual void DidChangeRootLayerScrollOffset() = 0;
58
54 protected: 59 protected:
55 virtual ~SynchronousCompositor() {} 60 virtual ~SynchronousCompositor() {}
56 }; 61 };
57 62
58 } // namespace content 63 } // namespace content
59 64
60 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ 65 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698