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

Side by Side Diff: src/core/SkDraw.cpp

Issue 2052943002: SkPixmap::setColorSpace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: std::move() Created 4 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/core/SkPixmap.h ('k') | src/core/SkImageInfo.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 #define __STDC_LIMIT_MACROS 7 #define __STDC_LIMIT_MACROS
8 8
9 #include "SkDraw.h" 9 #include "SkDraw.h"
10 #include "SkBlitter.h" 10 #include "SkBlitter.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 SkTBlitterAllocator fAllocator; 107 SkTBlitterAllocator fAllocator;
108 }; 108 };
109 #define SkAutoBitmapShaderInstall(...) SK_REQUIRE_LOCAL_VAR(SkAutoBitmapShaderIn stall) 109 #define SkAutoBitmapShaderInstall(...) SK_REQUIRE_LOCAL_VAR(SkAutoBitmapShaderIn stall)
110 110
111 /////////////////////////////////////////////////////////////////////////////// 111 ///////////////////////////////////////////////////////////////////////////////
112 112
113 SkDraw::SkDraw() { 113 SkDraw::SkDraw() {
114 sk_bzero(this, sizeof(*this)); 114 sk_bzero(this, sizeof(*this));
115 } 115 }
116 116
117 SkDraw::SkDraw(const SkDraw& src) {
118 memcpy(this, &src, sizeof(*this));
119 }
120
121 bool SkDraw::computeConservativeLocalClipBounds(SkRect* localBounds) const { 117 bool SkDraw::computeConservativeLocalClipBounds(SkRect* localBounds) const {
122 if (fRC->isEmpty()) { 118 if (fRC->isEmpty()) {
123 return false; 119 return false;
124 } 120 }
125 121
126 SkMatrix inverse; 122 SkMatrix inverse;
127 if (!fMatrix->invert(&inverse)) { 123 if (!fMatrix->invert(&inverse)) {
128 return false; 124 return false;
129 } 125 }
130 126
(...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after
2080 mask->fImage = SkMask::AllocImage(size); 2076 mask->fImage = SkMask::AllocImage(size);
2081 memset(mask->fImage, 0, mask->computeImageSize()); 2077 memset(mask->fImage, 0, mask->computeImageSize());
2082 } 2078 }
2083 2079
2084 if (SkMask::kJustComputeBounds_CreateMode != mode) { 2080 if (SkMask::kJustComputeBounds_CreateMode != mode) {
2085 draw_into_mask(*mask, devPath, style); 2081 draw_into_mask(*mask, devPath, style);
2086 } 2082 }
2087 2083
2088 return true; 2084 return true;
2089 } 2085 }
OLDNEW
« no previous file with comments | « include/core/SkPixmap.h ('k') | src/core/SkImageInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698