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

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

Issue 1154293002: don't use accessBitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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/core/SkCanvas.cpp ('k') | src/image/SkSurface_Gpu.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 SkSurface_Gpu_DEFINED 8 #ifndef SkSurface_Gpu_DEFINED
9 #define SkSurface_Gpu_DEFINED 9 #define SkSurface_Gpu_DEFINED
10 10
11 #include "SkSurface_Base.h" 11 #include "SkSurface_Base.h"
12 12
13 #if SK_SUPPORT_GPU 13 #if SK_SUPPORT_GPU
14 14
15 class SkGpuDevice; 15 class SkGpuDevice;
16 16
17 class SkSurface_Gpu : public SkSurface_Base { 17 class SkSurface_Gpu : public SkSurface_Base {
18 public: 18 public:
19 SK_DECLARE_INST_COUNT(SkSurface_Gpu) 19 SK_DECLARE_INST_COUNT(SkSurface_Gpu)
20 20
21 SkSurface_Gpu(SkGpuDevice*); 21 SkSurface_Gpu(SkGpuDevice*);
22 virtual ~SkSurface_Gpu(); 22 virtual ~SkSurface_Gpu();
23 23
24 SkCanvas* onNewCanvas() override; 24 SkCanvas* onNewCanvas() override;
25 SkSurface* onNewSurface(const SkImageInfo&) override; 25 SkSurface* onNewSurface(const SkImageInfo&) override;
26 SkImage* onNewImageSnapshot(Budgeted) override; 26 SkImage* onNewImageSnapshot(Budgeted) override;
27 void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) override;
28 void onCopyOnWrite(ContentChangeMode) override; 27 void onCopyOnWrite(ContentChangeMode) override;
29 void onDiscard() override; 28 void onDiscard() override;
30 29
31 SkGpuDevice* getDevice() { return fDevice; } 30 SkGpuDevice* getDevice() { return fDevice; }
32 31
33 private: 32 private:
34 SkGpuDevice* fDevice; 33 SkGpuDevice* fDevice;
35 34
36 typedef SkSurface_Base INHERITED; 35 typedef SkSurface_Base INHERITED;
37 }; 36 };
38 37
39 #endif // SK_SUPPORT_GPU 38 #endif // SK_SUPPORT_GPU
40 39
41 #endif // SkSurface_Gpu_DEFINED 40 #endif // SkSurface_Gpu_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/image/SkSurface_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698