| Index: content/public/renderer/android/synchronous_compositor.h
|
| diff --git a/content/public/renderer/android/synchronous_compositor.h b/content/public/renderer/android/synchronous_compositor.h
|
| index f0c380d07af84e97862475125f3e04ff666f21ed..42aec2488ac4b1860849b7ec1c4e5e52e177987d 100644
|
| --- a/content/public/renderer/android/synchronous_compositor.h
|
| +++ b/content/public/renderer/android/synchronous_compositor.h
|
| @@ -5,8 +5,15 @@
|
| #ifndef CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_
|
| #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_
|
|
|
| +#include "ui/gfx/rect.h"
|
| +#include "ui/gfx/size.h"
|
| +
|
| class SkCanvas;
|
|
|
| +namespace gfx {
|
| +class Transform;
|
| +};
|
| +
|
| namespace content {
|
|
|
| class SynchronousCompositorClient;
|
| @@ -26,6 +33,13 @@ class SynchronousCompositor {
|
| // and clip set there-in).
|
| virtual bool DemandDrawSw(SkCanvas* canvas) = 0;
|
|
|
| + // "On demand" hardware draw. The content is first clipped to |damage_area|,
|
| + // then transformed through |transform|, and finally clipped to |view_size|.
|
| + virtual bool DemandDrawHw(
|
| + gfx::Size view_size,
|
| + const gfx::Transform& transform,
|
| + gfx::Rect damage_area) = 0;
|
| +
|
| protected:
|
| virtual ~SynchronousCompositor() {}
|
| };
|
|
|