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

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

Issue 2443003004: cc: Make OutputSurface::BindToClient pure virtual and not return bool (Closed)
Patch Set: bindtoclient-pure-virtual: rebase Created 4 years, 1 month 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/test/fake_output_surface.cc ('k') | cc/test/fake_output_surface_client.cc » ('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 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 DidLoseOutputSurface() override;
23 22
24 int swap_count() { return swap_count_; } 23 int swap_count() { return swap_count_; }
25 24
26 bool did_lose_output_surface_called() {
27 return did_lose_output_surface_called_;
28 }
29
30 private: 25 private:
31 int swap_count_ = 0; 26 int swap_count_ = 0;
32 bool did_lose_output_surface_called_ = false;
33 }; 27 };
34 28
35 } // namespace cc 29 } // namespace cc
36 30
37 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 31 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/fake_output_surface_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698