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

Side by Side Diff: src/gpu/GrPictureUtils.cpp

Issue 327263002: remove SK_SUPPORT_LEGACY_DEVICE_CONFIG code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « include/gpu/SkGpuDevice.h ('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 * 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 #include "GrPictureUtils.h" 8 #include "GrPictureUtils.h"
9 #include "SkDevice.h" 9 #include "SkDevice.h"
10 #include "SkDraw.h" 10 #include "SkDraw.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 fEmptyBitmap.setInfo(SkImageInfo::MakeUnknown(fInfo.fSize.fWidth, fInfo. fSize.fHeight)); 44 fEmptyBitmap.setInfo(SkImageInfo::MakeUnknown(fInfo.fSize.fWidth, fInfo. fSize.fHeight));
45 fAccelData = accelData; 45 fAccelData = accelData;
46 fAlreadyDrawn = false; 46 fAlreadyDrawn = false;
47 } 47 }
48 48
49 virtual ~GrGatherDevice() { } 49 virtual ~GrGatherDevice() { }
50 50
51 virtual int width() const SK_OVERRIDE { return fInfo.fSize.width(); } 51 virtual int width() const SK_OVERRIDE { return fInfo.fSize.width(); }
52 virtual int height() const SK_OVERRIDE { return fInfo.fSize.height(); } 52 virtual int height() const SK_OVERRIDE { return fInfo.fSize.height(); }
53 virtual bool isOpaque() const SK_OVERRIDE { return false; } 53 virtual bool isOpaque() const SK_OVERRIDE { return false; }
54 #ifdef SK_SUPPORT_LEGACY_DEVICE_CONFIG
55 virtual SkBitmap::Config config() const SK_OVERRIDE {
56 return SkBitmap::kNo_Config;
57 }
58 #endif
59 virtual SkImageInfo imageInfo() const SK_OVERRIDE { 54 virtual SkImageInfo imageInfo() const SK_OVERRIDE {
60 return fEmptyBitmap.info(); 55 return fEmptyBitmap.info();
61 } 56 }
62 57
63 #ifdef SK_SUPPORT_LEGACY_WRITEPIXELSCONFIG 58 #ifdef SK_SUPPORT_LEGACY_WRITEPIXELSCONFIG
64 virtual void writePixels(const SkBitmap& bitmap, int x, int y, 59 virtual void writePixels(const SkBitmap& bitmap, int x, int y,
65 SkCanvas::Config8888 config8888) SK_OVERRIDE { 60 SkCanvas::Config8888 config8888) SK_OVERRIDE {
66 NotSupported(); 61 NotSupported();
67 } 62 }
68 #endif 63 #endif
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 void GatherGPUInfo(const SkPicture* pict, GPUAccelData* accelData) { 273 void GatherGPUInfo(const SkPicture* pict, GPUAccelData* accelData) {
279 if (0 == pict->width() || 0 == pict->height()) { 274 if (0 == pict->width() || 0 == pict->height()) {
280 return ; 275 return ;
281 } 276 }
282 277
283 GrGatherDevice device(pict->width(), pict->height(), pict, accelData, 0); 278 GrGatherDevice device(pict->width(), pict->height(), pict, accelData, 0);
284 GrGatherCanvas canvas(&device, pict); 279 GrGatherCanvas canvas(&device, pict);
285 280
286 canvas.gather(); 281 canvas.gather();
287 } 282 }
OLDNEW
« no previous file with comments | « include/gpu/SkGpuDevice.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698