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

Side by Side Diff: content/common/gpu/gpu_watchdog.h

Issue 10383262: RefCounted types should not have public destructors, delegate cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make win bot happy Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_GPU_GPU_WATCHDOG_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_WATCHDOG_H_
6 #define CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ 6 #define CONTENT_COMMON_GPU_GPU_WATCHDOG_H_
7 7
8 // Interface for objects that monitor the a GPUProcessor's progress. The 8 // Interface for objects that monitor the a GPUProcessor's progress. The
9 // GPUProcessor will regularly invoke CheckArmed. 9 // GPUProcessor will regularly invoke CheckArmed.
10 class GpuWatchdog { 10 class GpuWatchdog {
11 public: 11 public:
12 GpuWatchdog() { 12 virtual void CheckArmed() = 0;
13 }
14 13
15 virtual ~GpuWatchdog() { 14 protected:
16 }; 15 GpuWatchdog() {}
17 16 virtual ~GpuWatchdog() {};
18 virtual void CheckArmed() = 0;
19 17
20 private: 18 private:
21 DISALLOW_COPY_AND_ASSIGN(GpuWatchdog); 19 DISALLOW_COPY_AND_ASSIGN(GpuWatchdog);
22 }; 20 };
23 21
24 #endif // CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ 22 #endif // CONTENT_COMMON_GPU_GPU_WATCHDOG_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698