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

Unified Diff: cc/output/output_surface_frame.h

Issue 2374183006: Remove GLFrameData from CompositorFrame. (Closed)
Patch Set: Rebase. Created 4 years, 2 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
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/output/output_surface_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface_frame.h
diff --git a/cc/output/output_surface_frame.h b/cc/output/output_surface_frame.h
new file mode 100644
index 0000000000000000000000000000000000000000..2306f2e5b4bbe686807d324dd438eee65266d245
--- /dev/null
+++ b/cc/output/output_surface_frame.h
@@ -0,0 +1,38 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_
+#define CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_
+
+#include <vector>
+
+#include "base/macros.h"
+#include "cc/base/cc_export.h"
+#include "ui/events/latency_info.h"
+#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/geometry/size.h"
+
+namespace cc {
+
+// Metadata given to the OutputSurface for it to swap what was drawn and make
+// current frame visible.
+class CC_EXPORT OutputSurfaceFrame {
+ public:
+ OutputSurfaceFrame();
+ OutputSurfaceFrame(OutputSurfaceFrame&& other);
+ ~OutputSurfaceFrame();
+
+ OutputSurfaceFrame& operator=(OutputSurfaceFrame&& other);
+
+ gfx::Size size;
+ gfx::Rect sub_buffer_rect;
+ std::vector<ui::LatencyInfo> latency_info;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(OutputSurfaceFrame);
+};
+
+} // namespace cc
+
+#endif // CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/output/output_surface_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698