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

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

Issue 1841123002: Reverse dependency between SkScalar.h and SkFixed.h (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 8 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/SkReadBuffer.h ('k') | src/core/SkScan.h » ('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 2012 Google Inc. 2 * Copyright 2012 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 "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkErrorInternals.h" 9 #include "SkErrorInternals.h"
10 #include "SkImage.h" 10 #include "SkImage.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 bool SkReadBuffer::readBool() { 85 bool SkReadBuffer::readBool() {
86 return fReader.readBool(); 86 return fReader.readBool();
87 } 87 }
88 88
89 SkColor SkReadBuffer::readColor() { 89 SkColor SkReadBuffer::readColor() {
90 return fReader.readInt(); 90 return fReader.readInt();
91 } 91 }
92 92
93 SkFixed SkReadBuffer::readFixed() {
94 return fReader.readS32();
95 }
96
97 int32_t SkReadBuffer::readInt() { 93 int32_t SkReadBuffer::readInt() {
98 return fReader.readInt(); 94 return fReader.readInt();
99 } 95 }
100 96
101 SkScalar SkReadBuffer::readScalar() { 97 SkScalar SkReadBuffer::readScalar() {
102 return fReader.readScalar(); 98 return fReader.readScalar();
103 } 99 }
104 100
105 uint32_t SkReadBuffer::readUInt() { 101 uint32_t SkReadBuffer::readUInt() {
106 return fReader.readU32(); 102 return fReader.readU32();
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 return; 380 return;
385 } 381 }
386 } else { 382 } else {
387 if (nullptr == this->readFunctionPtr()) { 383 if (nullptr == this->readFunctionPtr()) {
388 return; 384 return;
389 } 385 }
390 } 386 }
391 uint32_t sizeRecorded = fReader.readU32(); 387 uint32_t sizeRecorded = fReader.readU32();
392 fReader.skip(sizeRecorded); 388 fReader.skip(sizeRecorded);
393 } 389 }
OLDNEW
« no previous file with comments | « src/core/SkReadBuffer.h ('k') | src/core/SkScan.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698