OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |