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

Side by Side Diff: src/gpu/SkGpuDevice.h

Issue 1817383002: switch surface to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/gpu/GrLayerHoister.cpp ('k') | src/gpu/SkGpuDevice.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkGpuDevice_DEFINED 9 #ifndef SkGpuDevice_DEFINED
10 #define SkGpuDevice_DEFINED 10 #define SkGpuDevice_DEFINED
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 kIsOpaque_Flag = 1 << 1, //!< Hint from client that rendering to this device will be 173 kIsOpaque_Flag = 1 << 1, //!< Hint from client that rendering to this device will be
174 // opaque even if the config supports alpha . 174 // opaque even if the config supports alpha .
175 }; 175 };
176 static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents init, 176 static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents init,
177 unsigned* flags); 177 unsigned* flags);
178 178
179 SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, u nsigned flags); 179 SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, u nsigned flags);
180 180
181 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; 181 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
182 182
183 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) override; 183 sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&) over ride;
184 184
185 SkImageFilter::Cache* getImageFilterCache() override; 185 SkImageFilter::Cache* getImageFilterCache() override;
186 186
187 bool forceConservativeRasterClip() const override { return true; } 187 bool forceConservativeRasterClip() const override { return true; }
188 188
189 // sets the render target and clip on context 189 // sets the render target and clip on context
190 void prepareDraw(const SkDraw&); 190 void prepareDraw(const SkDraw&);
191 191
192 /** 192 /**
193 * Helper functions called by drawBitmapCommon. By the time these are called the SkDraw's 193 * Helper functions called by drawBitmapCommon. By the time these are called the SkDraw's
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 static GrRenderTarget* CreateRenderTarget(GrContext*, SkBudgeted, const SkIm ageInfo&, 262 static GrRenderTarget* CreateRenderTarget(GrContext*, SkBudgeted, const SkIm ageInfo&,
263 int sampleCount, GrTextureStorageA llocator); 263 int sampleCount, GrTextureStorageA llocator);
264 264
265 friend class GrAtlasTextContext; 265 friend class GrAtlasTextContext;
266 friend class SkSurface_Gpu; // for access to surfaceProps 266 friend class SkSurface_Gpu; // for access to surfaceProps
267 typedef SkBaseDevice INHERITED; 267 typedef SkBaseDevice INHERITED;
268 }; 268 };
269 269
270 #endif 270 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrLayerHoister.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698