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

Side by Side Diff: src/utils/win/SkDWriteFontFileStream.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 3 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/utils/mac/SkStream_mac.cpp ('k') | src/utils/win/SkWGL_win.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 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 "SkTypes.h" 8 #include "SkTypes.h"
9 #include "SkDWriteFontFileStream.h" 9 #include "SkDWriteFontFileStream.h"
10 #include "SkHRESULT.h" 10 #include "SkHRESULT.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 bool SkDWriteFontFileStream::isAtEnd() const { 78 bool SkDWriteFontFileStream::isAtEnd() const {
79 return fPos == this->getLength(); 79 return fPos == this->getLength();
80 } 80 }
81 81
82 bool SkDWriteFontFileStream::rewind() { 82 bool SkDWriteFontFileStream::rewind() {
83 fPos = 0; 83 fPos = 0;
84 return true; 84 return true;
85 } 85 }
86 86
87 SkDWriteFontFileStream* SkDWriteFontFileStream::duplicate() const { 87 SkDWriteFontFileStream* SkDWriteFontFileStream::duplicate() const {
88 return SkNEW_ARGS(SkDWriteFontFileStream, (fFontFileStream.get())); 88 return new SkDWriteFontFileStream(fFontFileStream.get());
89 } 89 }
90 90
91 size_t SkDWriteFontFileStream::getPosition() const { 91 size_t SkDWriteFontFileStream::getPosition() const {
92 return fPos; 92 return fPos;
93 } 93 }
94 94
95 bool SkDWriteFontFileStream::seek(size_t position) { 95 bool SkDWriteFontFileStream::seek(size_t position) {
96 size_t length = this->getLength(); 96 size_t length = this->getLength();
97 fPos = (position > length) ? length : position; 97 fPos = (position > length) ? length : position;
98 return true; 98 return true;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 HRESULT STDMETHODCALLTYPE SkDWriteFontFileStreamWrapper::GetFileSize(UINT64* fil eSize) { 222 HRESULT STDMETHODCALLTYPE SkDWriteFontFileStreamWrapper::GetFileSize(UINT64* fil eSize) {
223 *fileSize = fStream->getLength(); 223 *fileSize = fStream->getLength();
224 return S_OK; 224 return S_OK;
225 } 225 }
226 226
227 HRESULT STDMETHODCALLTYPE SkDWriteFontFileStreamWrapper::GetLastWriteTime(UINT64 * lastWriteTime) { 227 HRESULT STDMETHODCALLTYPE SkDWriteFontFileStreamWrapper::GetLastWriteTime(UINT64 * lastWriteTime) {
228 // The concept of last write time does not apply to this loader. 228 // The concept of last write time does not apply to this loader.
229 *lastWriteTime = 0; 229 *lastWriteTime = 0;
230 return E_NOTIMPL; 230 return E_NOTIMPL;
231 } 231 }
OLDNEW
« no previous file with comments | « src/utils/mac/SkStream_mac.cpp ('k') | src/utils/win/SkWGL_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698