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

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

Issue 634243003: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr [part-4] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formating fix. Created 6 years, 2 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
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/managed_memory_policy.h" 8 #include "cc/output/managed_memory_policy.h"
9 #include "cc/output/output_surface_client.h" 9 #include "cc/output/output_surface_client.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class OutputSurface; 13 class OutputSurface;
14 14
15 class FakeOutputSurfaceClient : public OutputSurfaceClient { 15 class FakeOutputSurfaceClient : public OutputSurfaceClient {
16 public: 16 public:
17 FakeOutputSurfaceClient() 17 FakeOutputSurfaceClient()
18 : output_surface_(NULL), 18 : output_surface_(nullptr),
19 begin_frame_count_(0), 19 begin_frame_count_(0),
20 swap_count_(0), 20 swap_count_(0),
21 deferred_initialize_called_(false), 21 deferred_initialize_called_(false),
22 did_lose_output_surface_called_(false), 22 did_lose_output_surface_called_(false),
23 memory_policy_(0) {} 23 memory_policy_(0) {}
24 24
25 explicit FakeOutputSurfaceClient(OutputSurface* output_surface) 25 explicit FakeOutputSurfaceClient(OutputSurface* output_surface)
26 : output_surface_(output_surface), 26 : output_surface_(output_surface),
27 begin_frame_count_(0), 27 begin_frame_count_(0),
28 swap_count_(0), 28 swap_count_(0),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 int begin_frame_count_; 68 int begin_frame_count_;
69 int swap_count_; 69 int swap_count_;
70 bool deferred_initialize_called_; 70 bool deferred_initialize_called_;
71 bool did_lose_output_surface_called_; 71 bool did_lose_output_surface_called_;
72 ManagedMemoryPolicy memory_policy_; 72 ManagedMemoryPolicy memory_policy_;
73 }; 73 };
74 74
75 } // namespace cc 75 } // namespace cc
76 76
77 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 77 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698