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

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

Issue 2465093002: cc: Add OutputSurface state snapshots.
Patch Set: rebase Created 3 years, 10 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/display.cc ('k') | components/display_compositor/buffer_queue.h » ('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 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 FakeOutputSurfaceClient : public OutputSurfaceClient { 12 class FakeOutputSurfaceClient : public OutputSurfaceClient {
13 public: 13 public:
14 FakeOutputSurfaceClient() = default; 14 FakeOutputSurfaceClient() = default;
15 15
16 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {} 16 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {}
17 void DidReceiveSwapBuffersAck() override; 17 void DidReceiveSwapBuffersAck() override;
18 void DidReceiveTextureInUseResponses( 18 void DidReceiveTextureInUseResponses(
19 const gpu::TextureInUseResponses& responses) override {} 19 const gpu::TextureInUseResponses& responses) override {}
20 void ReadbackSwappedOverlayTextures(
21 std::vector<SkBitmap>* bitmaps,
22 const base::Callback<void(bool)>& callback) override {}
20 23
21 int swap_count() { return swap_count_; } 24 int swap_count() { return swap_count_; }
22 25
23 private: 26 private:
24 int swap_count_ = 0; 27 int swap_count_ = 0;
25 }; 28 };
26 29
27 } // namespace cc 30 } // namespace cc
28 31
29 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 32 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/surfaces/display.cc ('k') | components/display_compositor/buffer_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698