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

Side by Side Diff: include/gpu/GrProcessorDataManager.h

Issue 1230023003: Modify GrClipMaskManager to reflect logical constness (Closed) Base URL: https://skia.googlesource.com/skia.git@proctomemorypool
Patch Set: change to ref Created 5 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
« no previous file with comments | « no previous file | src/gpu/GrClipMaskManager.h » ('j') | src/gpu/GrClipMaskManager.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrProcessorDataManager_DEFINED 8 #ifndef GrProcessorDataManager_DEFINED
9 #define GrProcessorDataManager_DEFINED 9 #define GrProcessorDataManager_DEFINED
10 10
11 #include "SkRefCnt.h" 11 #include "SkRefCnt.h"
12 12
13 class GrProcessorDataManager : public SkRefCnt { 13 class GrProcessorDataManager : public SkRefCnt {
14 public: 14 public:
15 GrProcessorDataManager() {} 15 GrProcessorDataManager() {}
16 GrProcessorDataManager(const GrProcessorDataManager& procDataManager) {} 16 GrProcessorDataManager(const GrProcessorDataManager& procDataManager) {}
17 17
18 void* operator new(size_t size); 18 void* operator new(size_t size);
19 void operator delete(void* target); 19 void operator delete(void* target);
20 20
21 void* operator new(size_t size, void* placement) { 21 void* operator new(size_t size, void* placement) {
22 return ::operator new(size, placement); 22 return ::operator new(size, placement);
23 } 23 }
24 void operator delete(void* target, void* placement) { 24 void operator delete(void* target, void* placement) {
25 ::operator delete(target, placement); 25 ::operator delete(target, placement);
26 } 26 }
27 27
28 private: 28 private:
robertphillips 2015/07/10 14:34:09 I'm not crazy about 'height' here
29 uint32_t currentHeight() const { return 0; }
30 void restoreHeight(uint32_t height) {}
31
32 // For GrPipelineBuilder::AutoRestoreProcessorDataManager
33 friend class GrPipelineBuilder;
34
29 typedef SkRefCnt INHERITED; 35 typedef SkRefCnt INHERITED;
30 }; 36 };
31 37
32 #endif 38 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrClipMaskManager.h » ('j') | src/gpu/GrClipMaskManager.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698