| OLD | NEW |
| 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 Loading... |
| 44 // and clip set there-in). | 44 // and clip set there-in). |
| 45 virtual bool DemandDrawSw(SkCanvas* canvas) = 0; | 45 virtual bool DemandDrawSw(SkCanvas* canvas) = 0; |
| 46 | 46 |
| 47 // "On demand" hardware draw. The content is first clipped to |damage_area|, | 47 // "On demand" hardware draw. The content is first clipped to |damage_area|, |
| 48 // then transformed through |transform|, and finally clipped to |view_size|. | 48 // then transformed through |transform|, and finally clipped to |view_size|. |
| 49 virtual bool DemandDrawHw( | 49 virtual bool DemandDrawHw( |
| 50 gfx::Size view_size, | 50 gfx::Size view_size, |
| 51 const gfx::Transform& transform, | 51 const gfx::Transform& transform, |
| 52 gfx::Rect damage_area) = 0; | 52 gfx::Rect damage_area) = 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_ |
| OLD | NEW |