| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 } | 185 } |
| 186 bool ReleasedFrontLockActiveForTesting() const { | 186 bool ReleasedFrontLockActiveForTesting() const { |
| 187 return !!released_front_lock_.get(); | 187 return !!released_front_lock_.get(); |
| 188 } | 188 } |
| 189 void SetRequestCopyOfOutputCallbackForTesting( | 189 void SetRequestCopyOfOutputCallbackForTesting( |
| 190 const base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)>& | 190 const base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)>& |
| 191 callback) { | 191 callback) { |
| 192 request_copy_of_output_callback_for_testing_ = callback; | 192 request_copy_of_output_callback_for_testing_ = callback; |
| 193 } | 193 } |
| 194 | 194 |
| 195 bool skipped_frames() const { return skipped_frames_; } |
| 196 |
| 195 private: | 197 private: |
| 196 friend class DelegatedFrameHostClient; | 198 friend class DelegatedFrameHostClient; |
| 197 friend class RenderWidgetHostViewAuraCopyRequestTest; | 199 friend class RenderWidgetHostViewAuraCopyRequestTest; |
| 198 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 200 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 199 SkippedDelegatedFrames); | 201 SkippedDelegatedFrames); |
| 200 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 202 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 201 DiscardDelegatedFramesWithLocking); | 203 DiscardDelegatedFramesWithLocking); |
| 202 | 204 |
| 203 RenderWidgetHostViewFrameSubscriber* frame_subscriber() const { | 205 RenderWidgetHostViewFrameSubscriber* frame_subscriber() const { |
| 204 return frame_subscriber_.get(); | 206 return frame_subscriber_.get(); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 bool needs_begin_frame_ = false; | 340 bool needs_begin_frame_ = false; |
| 339 | 341 |
| 340 bool has_frame_ = false; | 342 bool has_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 |