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

Side by Side Diff: src/image/SkImage_Raster.cpp

Issue 586853003: Cleaning includes in SkImage-related files (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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 | « src/image/SkImage_Gpu.cpp ('k') | no next file » | 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 2012 Google Inc. 2 * Copyright 2012 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 #include "SkImage_Base.h" 8 #include "SkImage_Base.h"
9 #include "SkImagePriv.h" 9 #include "SkImagePriv.h"
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkData.h" 12 #include "SkData.h"
13 #include "SkDecodingImageGenerator.h" 13 #include "SkDecodingImageGenerator.h"
14 #include "SkMallocPixelRef.h"
15 14
16 class SkImage_Raster : public SkImage_Base { 15 class SkImage_Raster : public SkImage_Base {
17 public: 16 public:
18 static bool ValidArgs(const Info& info, size_t rowBytes) { 17 static bool ValidArgs(const Info& info, size_t rowBytes) {
19 const int maxDimension = SK_MaxS32 >> 2; 18 const int maxDimension = SK_MaxS32 >> 2;
20 const size_t kMaxPixelByteSize = SK_MaxS32; 19 const size_t kMaxPixelByteSize = SK_MaxS32;
21 20
22 if (info.width() < 0 || info.height() < 0) { 21 if (info.width() < 0 || info.height() < 0) {
23 return false; 22 return false;
24 } 23 }
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 return SkNEW_ARGS(SkImage_Raster, (info, pr, rowBytes)); 217 return SkNEW_ARGS(SkImage_Raster, (info, pr, rowBytes));
219 } 218 }
220 219
221 SkPixelRef* SkBitmapImageGetPixelRef(SkImage* image) { 220 SkPixelRef* SkBitmapImageGetPixelRef(SkImage* image) {
222 return ((SkImage_Raster*)image)->getPixelRef(); 221 return ((SkImage_Raster*)image)->getPixelRef();
223 } 222 }
224 223
225 bool SkImage_Raster::isOpaque() const { 224 bool SkImage_Raster::isOpaque() const {
226 return fBitmap.isOpaque(); 225 return fBitmap.isOpaque();
227 } 226 }
OLDNEW
« no previous file with comments | « src/image/SkImage_Gpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698