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

Unified Diff: services/gfx/compositor/graph/snapshot.h

Issue 1995873002: Mozart: Improve tracing and backpressure. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: services/gfx/compositor/graph/snapshot.h
diff --git a/services/gfx/compositor/graph/snapshot.h b/services/gfx/compositor/graph/snapshot.h
index 7f3043d669fd60ecfb864f58b7b78f01e26ba288..8012fd20e97329a2877873edb8f2688c24b8f61e 100644
--- a/services/gfx/compositor/graph/snapshot.h
+++ b/services/gfx/compositor/graph/snapshot.h
@@ -14,13 +14,13 @@
#include "mojo/services/geometry/interfaces/geometry.mojom.h"
#include "mojo/services/gfx/composition/interfaces/hit_tests.mojom.h"
#include "mojo/services/gfx/composition/interfaces/scheduling.mojom.h"
+#include "services/gfx/compositor/render/render_frame.h"
namespace compositor {
class Node;
class SceneContent;
class SceneNode;
-class RenderFrame;
// Describes a single frame snapshot of the scene graph, sufficient for
// rendering and hit testing. When the snapshot is made, all predicated and
@@ -63,11 +63,10 @@ class Snapshot : public base::RefCounted<Snapshot> {
bool HasDependency(
const mojo::gfx::composition::SceneToken& scene_token) const;
- // Creates a frame for rendering.
+ // Paints the content of the snapshot to produce a frame to be rendered.
// Only valid if |!is_blocked()|.
- scoped_refptr<RenderFrame> CreateFrame(
- const mojo::Rect& viewport,
- const mojo::gfx::composition::FrameInfo& frame_info) const;
+ scoped_refptr<RenderFrame> Paint(const RenderFrame::Metadata& metadata,
+ const mojo::Rect& viewport) const;
// Performs a hit test at the specified point, populating the result.
// Only valid if |!is_blocked()|.

Powered by Google App Engine
This is Rietveld 408576698