| Index: services/gfx/compositor/graph/scene_content.h
|
| diff --git a/services/gfx/compositor/graph/scene_content.h b/services/gfx/compositor/graph/scene_content.h
|
| index f3ccb5abafb5b6cf836ad3d2edf1801929dbdaa0..05cad8aee33986d404a8de90b75427fc7faeba80 100644
|
| --- a/services/gfx/compositor/graph/scene_content.h
|
| +++ b/services/gfx/compositor/graph/scene_content.h
|
| @@ -11,11 +11,16 @@
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/weak_ptr.h"
|
| +#include "mojo/services/gfx/composition/interfaces/hit_tests.mojom.h"
|
| #include "mojo/services/gfx/composition/interfaces/scenes.mojom.h"
|
| #include "services/gfx/compositor/graph/node_def.h"
|
| #include "services/gfx/compositor/graph/resource_def.h"
|
| #include "services/gfx/compositor/graph/scene_label.h"
|
|
|
| +class SkCanvas;
|
| +struct SkPoint;
|
| +class SkMatrix;
|
| +
|
| namespace compositor {
|
|
|
| class SceneContentBuilder;
|
| @@ -49,6 +54,19 @@ class SceneContent : public base::RefCounted<SceneContent> {
|
| // Gets the version of the scene represented by this object.
|
| uint32_t version() const { return version_; }
|
|
|
| + // Called to record drawing commands from a snapshot.
|
| + void RecordPicture(const Snapshot* snapshot, SkCanvas* canvas) const;
|
| +
|
| + // Performs a hit test at the specified point.
|
| + // The |global_point| is the original hit tested point.
|
| + // The |scene_transform| is the accumulated transform from the scene's
|
| + // coordinate space to the global coordinate space.
|
| + // Returns hit information for the scene, or null if none.
|
| + mojo::gfx::composition::SceneHitPtr HitTest(const Snapshot* snapshot,
|
| + const SkPoint& global_point,
|
| + const SkMatrix& scene_transform,
|
| + bool* opaque) const;
|
| +
|
| // Gets the requested resource, never null because it must be present.
|
| const ResourceDef* GetResource(uint32_t resource_id,
|
| ResourceDef::Type resource_type) const;
|
|
|