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

Side by Side Diff: src/utils/SkGatherPixelRefsAndRects.h

Issue 308683005: setConfig -> setInfo (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: missed one setConfig (release only) Created 6 years, 6 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
« no previous file with comments | « src/ports/SkImageDecoder_CG.cpp ('k') | src/utils/SkPictureUtils.cpp » ('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 2014 Google Inc. 2 * Copyright 2014 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 SkGatherPixelRefsAndRects_DEFINED 8 #ifndef SkGatherPixelRefsAndRects_DEFINED
9 #define SkGatherPixelRefsAndRects_DEFINED 9 #define SkGatherPixelRefsAndRects_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 // device bounds to the user provided SkPixelRefContainer-derived object 21 // device bounds to the user provided SkPixelRefContainer-derived object
22 class SkGatherPixelRefsAndRectsDevice : public SkBaseDevice { 22 class SkGatherPixelRefsAndRectsDevice : public SkBaseDevice {
23 public: 23 public:
24 SK_DECLARE_INST_COUNT(SkGatherPixelRefsAndRectsDevice) 24 SK_DECLARE_INST_COUNT(SkGatherPixelRefsAndRectsDevice)
25 25
26 SkGatherPixelRefsAndRectsDevice(int width, int height, 26 SkGatherPixelRefsAndRectsDevice(int width, int height,
27 SkPictureUtils::SkPixelRefContainer* prCont) { 27 SkPictureUtils::SkPixelRefContainer* prCont) {
28 fSize.set(width, height); 28 fSize.set(width, height);
29 fPRCont = prCont; 29 fPRCont = prCont;
30 SkSafeRef(fPRCont); 30 SkSafeRef(fPRCont);
31 fEmptyBitmap.setConfig(SkImageInfo::Make(width, height, 31 fEmptyBitmap.setInfo(SkImageInfo::MakeUnknown(width, height));
32 kUnknown_SkColorType,
33 kIgnore_SkAlphaType));
34 } 32 }
35 33
36 virtual ~SkGatherPixelRefsAndRectsDevice() { 34 virtual ~SkGatherPixelRefsAndRectsDevice() {
37 SkSafeUnref(fPRCont); 35 SkSafeUnref(fPRCont);
38 } 36 }
39 37
40 virtual int width() const SK_OVERRIDE { return fSize.width(); } 38 virtual int width() const SK_OVERRIDE { return fSize.width(); }
41 virtual int height() const SK_OVERRIDE { return fSize.height(); } 39 virtual int height() const SK_OVERRIDE { return fSize.height(); }
42 virtual bool isOpaque() const SK_OVERRIDE { return false; } 40 virtual bool isOpaque() const SK_OVERRIDE { return false; }
43 virtual SkBitmap::Config config() const SK_OVERRIDE { 41 virtual SkBitmap::Config config() const SK_OVERRIDE {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 static void NotSupported() { 330 static void NotSupported() {
333 SkDEBUGFAIL("this method should never be called"); 331 SkDEBUGFAIL("this method should never be called");
334 } 332 }
335 333
336 static void NothingToDo() {} 334 static void NothingToDo() {}
337 335
338 typedef SkBaseDevice INHERITED; 336 typedef SkBaseDevice INHERITED;
339 }; 337 };
340 338
341 #endif // SkGatherPixelRefsAndRects_DEFINED 339 #endif // SkGatherPixelRefsAndRects_DEFINED
OLDNEW
« no previous file with comments | « src/ports/SkImageDecoder_CG.cpp ('k') | src/utils/SkPictureUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698