| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OUTPUT_SURFACE_CLIENT_H_ | 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ |
| 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ | 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ |
| 7 | 7 |
| 8 #include "cc/output/output_surface_client.h" | 8 #include "cc/output/output_surface_client.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 | 11 |
| 12 class OutputSurface; | 12 class OutputSurface; |
| 13 | 13 |
| 14 class FakeOutputSurfaceClient : public OutputSurfaceClient { | 14 class FakeOutputSurfaceClient : public OutputSurfaceClient { |
| 15 public: | 15 public: |
| 16 FakeOutputSurfaceClient() = default; | 16 FakeOutputSurfaceClient() = default; |
| 17 | 17 |
| 18 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {} | 18 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {} |
| 19 void DidReceiveSwapBuffersAck() override; | 19 void DidReceiveSwapBuffersAck() override; |
| 20 void DidReceiveTextureInUseResponses( | 20 void DidReceiveTextureInUseResponses( |
| 21 const gpu::TextureInUseResponses& responses) override {} | 21 const gpu::TextureInUseResponses& responses) override {} |
| 22 void ReadbackSwappedOverlayTextures( |
| 23 std::vector<SkBitmap>* bitmaps, |
| 24 const base::Callback<void(bool)>& callback) override {} |
| 22 | 25 |
| 23 int swap_count() { return swap_count_; } | 26 int swap_count() { return swap_count_; } |
| 24 | 27 |
| 25 private: | 28 private: |
| 26 int swap_count_ = 0; | 29 int swap_count_ = 0; |
| 27 }; | 30 }; |
| 28 | 31 |
| 29 } // namespace cc | 32 } // namespace cc |
| 30 | 33 |
| 31 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ | 34 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ |
| OLD | NEW |