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

Side by Side Diff: cc/test/fake_compositor_frame_sink.h

Issue 2402173002: cc: Get rid of PostSwapBuffersComplete. (Closed)
Patch Set: postswap: fix-blimp-unittest-post-swap-acks 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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink.cc ('k') | cc/test/fake_compositor_frame_sink.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TEST_FAKE_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_H_
6 #define CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_H_ 6 #define CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/memory/weak_ptr.h"
13 #include "base/time/time.h" 14 #include "base/time/time.h"
14 #include "cc/output/begin_frame_args.h" 15 #include "cc/output/begin_frame_args.h"
15 #include "cc/output/compositor_frame.h" 16 #include "cc/output/compositor_frame.h"
16 #include "cc/output/compositor_frame_sink.h" 17 #include "cc/output/compositor_frame_sink.h"
17 #include "cc/output/software_output_device.h" 18 #include "cc/output/software_output_device.h"
18 #include "cc/test/test_context_provider.h" 19 #include "cc/test/test_context_provider.h"
19 #include "cc/test/test_gles2_interface.h" 20 #include "cc/test/test_gles2_interface.h"
20 #include "cc/test/test_web_graphics_context_3d.h" 21 #include "cc/test/test_web_graphics_context_3d.h"
21 22
22 namespace cc { 23 namespace cc {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 FakeCompositorFrameSink( 72 FakeCompositorFrameSink(
72 scoped_refptr<ContextProvider> context_provider, 73 scoped_refptr<ContextProvider> context_provider,
73 scoped_refptr<ContextProvider> worker_context_provider); 74 scoped_refptr<ContextProvider> worker_context_provider);
74 75
75 CompositorFrameSinkClient* client_ = nullptr; 76 CompositorFrameSinkClient* client_ = nullptr;
76 std::unique_ptr<CompositorFrame> last_sent_frame_; 77 std::unique_ptr<CompositorFrame> last_sent_frame_;
77 size_t num_sent_frames_ = 0; 78 size_t num_sent_frames_ = 0;
78 TransferableResourceArray resources_held_by_parent_; 79 TransferableResourceArray resources_held_by_parent_;
79 bool last_swap_rect_valid_ = false; 80 bool last_swap_rect_valid_ = false;
80 gfx::Rect last_swap_rect_; 81 gfx::Rect last_swap_rect_;
82
83 private:
84 void SwapBuffersAck();
85
86 base::WeakPtrFactory<FakeCompositorFrameSink> weak_ptr_factory_;
81 }; 87 };
82 88
83 } // namespace cc 89 } // namespace cc
84 90
85 #endif // CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_H_ 91 #endif // CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink.cc ('k') | cc/test/fake_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698