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

Side by Side Diff: cc/output/output_surface_frame.h

Issue 2699173002: cc: Make OutputSurfaceFrame::sub_buffer_rect optional (Closed)
Patch Set: Removed obsolete comment Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/optional.h"
11 #include "cc/base/cc_export.h" 12 #include "cc/base/cc_export.h"
12 #include "ui/events/latency_info.h" 13 #include "ui/events/latency_info.h"
13 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
14 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
15 16
16 namespace cc { 17 namespace cc {
17 18
18 // Metadata given to the OutputSurface for it to swap what was drawn and make 19 // Metadata given to the OutputSurface for it to swap what was drawn and make
19 // current frame visible. 20 // current frame visible.
20 class CC_EXPORT OutputSurfaceFrame { 21 class CC_EXPORT OutputSurfaceFrame {
21 public: 22 public:
22 OutputSurfaceFrame(); 23 OutputSurfaceFrame();
23 OutputSurfaceFrame(OutputSurfaceFrame&& other); 24 OutputSurfaceFrame(OutputSurfaceFrame&& other);
24 ~OutputSurfaceFrame(); 25 ~OutputSurfaceFrame();
25 26
26 OutputSurfaceFrame& operator=(OutputSurfaceFrame&& other); 27 OutputSurfaceFrame& operator=(OutputSurfaceFrame&& other);
27 28
28 gfx::Size size; 29 gfx::Size size;
29 gfx::Rect sub_buffer_rect; 30 // Optional rect for partial or empty swap; if not provided, use regular swap.
31 base::Optional<gfx::Rect> sub_buffer_rect;
30 std::vector<ui::LatencyInfo> latency_info; 32 std::vector<ui::LatencyInfo> latency_info;
31 33
32 private: 34 private:
33 DISALLOW_COPY_AND_ASSIGN(OutputSurfaceFrame); 35 DISALLOW_COPY_AND_ASSIGN(OutputSurfaceFrame);
34 }; 36 };
35 37
36 } // namespace cc 38 } // namespace cc
37 39
38 #endif // CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_ 40 #endif // CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698