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

Side by Side Diff: content/browser/renderer_host/delegated_frame_host.h

Issue 2740833005: [cc] Pass on BeginFrameAcks from CompositorEBFS through RWHVAura, DFH. (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 bool ReleasedFrontLockActiveForTesting() const { 188 bool ReleasedFrontLockActiveForTesting() const {
189 return !!released_front_lock_.get(); 189 return !!released_front_lock_.get();
190 } 190 }
191 void SetRequestCopyOfOutputCallbackForTesting( 191 void SetRequestCopyOfOutputCallbackForTesting(
192 const base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)>& 192 const base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)>&
193 callback) { 193 callback) {
194 request_copy_of_output_callback_for_testing_ = callback; 194 request_copy_of_output_callback_for_testing_ = callback;
195 } 195 }
196 196
197 bool skipped_frames() const { return skipped_frames_; }
198
197 private: 199 private:
198 friend class DelegatedFrameHostClient; 200 friend class DelegatedFrameHostClient;
199 friend class RenderWidgetHostViewAuraCopyRequestTest; 201 friend class RenderWidgetHostViewAuraCopyRequestTest;
200 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 202 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
201 SkippedDelegatedFrames); 203 SkippedDelegatedFrames);
202 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 204 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
203 DiscardDelegatedFramesWithLocking); 205 DiscardDelegatedFramesWithLocking);
204 206
205 RenderWidgetHostViewFrameSubscriber* frame_subscriber() const { 207 RenderWidgetHostViewFrameSubscriber* frame_subscriber() const {
206 return frame_subscriber_.get(); 208 return frame_subscriber_.get();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; 340 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_;
339 341
340 bool needs_begin_frame_ = false; 342 bool needs_begin_frame_ = false;
341 343
342 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 344 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
343 }; 345 };
344 346
345 } // namespace content 347 } // namespace content
346 348
347 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 349 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698