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

Side by Side Diff: src/image/SkImage_BitmapBase.h

Issue 577063004: Refactoring in SkImage implementations backed by a SkBitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@small_refactor_skimageCodec
Patch Set: Comments 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/SkImagePriv.h ('k') | src/image/SkImage_BitmapBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkImage_BitmapBase_DEFINED
9 #define SkImage_BitmapBase_DEFINED
10
11 #include "SkImage_Base.h"
12
13 class SkImage_BitmapBase : public SkImage_Base {
14 public:
15 SkImage_BitmapBase(int width, int height);
16 SkImage_BitmapBase(const SkBitmap&);
17 virtual ~SkImage_BitmapBase() {}
18
19 virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) const SK_OVERRIDE;
20 virtual void onDrawRectToRect(SkCanvas*, const SkRect* src, const SkRect& ds t,
21 const SkPaint*) const SK_OVERRIDE;
22
23 virtual SkShader* onNewShader(SkShader::TileMode,
24 SkShader::TileMode,
25 const SkMatrix* localMatrix) const SK_OVERRIDE ;
26
27 virtual bool isOpaque() const SK_OVERRIDE;
28
29 protected:
30 virtual const SkBitmap& getBitmap() const { return fBitmap; };
31
32 private:
33 SkBitmap fBitmap;
34
35 typedef SkImage_Base INHERITED;
36 };
37
38 #endif /* SkImage_BitmapBase_DEFINED */
39
OLDNEW
« no previous file with comments | « src/image/SkImagePriv.h ('k') | src/image/SkImage_BitmapBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698