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

Side by Side Diff: experimental/SkiaExamples/SkExample.h

Issue 226183018: SkNonCopyable should be used with private inheritance. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: name resolution Created 6 years, 8 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 | « experimental/PdfViewer/inc/SkPdfRenderer.h ('k') | include/core/SkBitmap.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 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 * 7 *
8 */ 8 */
9 9
10 #ifndef SkExample_DEFINED 10 #ifndef SkExample_DEFINED
11 #define SkExample_DEFINED 11 #define SkExample_DEFINED
12 12
13 #include "SkWindow.h" 13 #include "SkWindow.h"
14 #include "SkTRegistry.h" 14 #include "SkTRegistry.h"
15 15
16 class GrContext; 16 class GrContext;
17 struct GrGLInterface; 17 struct GrGLInterface;
18 class GrRenderTarget; 18 class GrRenderTarget;
19 class SkCanvas; 19 class SkCanvas;
20 class SkExampleWindow; 20 class SkExampleWindow;
21 21
22 class SkExample : public SkNoncopyable { 22 class SkExample : SkNoncopyable {
23 public: 23 public:
24 SkExample(SkExampleWindow* window) : fWindow(window) {} 24 SkExample(SkExampleWindow* window) : fWindow(window) {}
25 25
26 virtual ~SkExample() {} 26 virtual ~SkExample() {}
27 27
28 // Your class should override this method to do its thing. 28 // Your class should override this method to do its thing.
29 virtual void draw(SkCanvas* canvas) = 0; 29 virtual void draw(SkCanvas* canvas) = 0;
30 30
31 SkString getName() { return fName; }; 31 SkString getName() { return fName; };
32 // Use this public registry to tell the world about your sample. 32 // Use this public registry to tell the world about your sample.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const SkExample::Registry* fRegistry; 73 const SkExample::Registry* fRegistry;
74 GrContext* fContext; 74 GrContext* fContext;
75 GrRenderTarget* fRenderTarget; 75 GrRenderTarget* fRenderTarget;
76 AttachmentInfo fAttachmentInfo; 76 AttachmentInfo fAttachmentInfo;
77 const GrGLInterface* fInterface; 77 const GrGLInterface* fInterface;
78 78
79 typedef SkOSWindow INHERITED; 79 typedef SkOSWindow INHERITED;
80 }; 80 };
81 81
82 #endif 82 #endif
OLDNEW
« no previous file with comments | « experimental/PdfViewer/inc/SkPdfRenderer.h ('k') | include/core/SkBitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698