From 0a5e1b5a340a83c9559b5ea0ebc6171c272cac30 Mon Sep 17 00:00:00 2001 From: "qinmin@chromium.org" Date: Thu, 6 Dec 2012 01:20:40 +0000 Subject: split lazy_pixel_ref.h into .cc and .h file to fix windows dbg build Review URL: https://chromiumcodereview.appspot.com/11447015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171375 0039d316-1c4b-4281-b951-d872f2087c98 --- skia/ext/lazy_pixel_ref.cc | 15 +++++++++++++++ skia/ext/lazy_pixel_ref.h | 4 ++-- skia/skia.gyp | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 skia/ext/lazy_pixel_ref.cc (limited to 'skia') diff --git a/skia/ext/lazy_pixel_ref.cc b/skia/ext/lazy_pixel_ref.cc new file mode 100644 index 0000000..784fae4 --- /dev/null +++ b/skia/ext/lazy_pixel_ref.cc @@ -0,0 +1,15 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "skia/ext/lazy_pixel_ref.h" + +namespace skia { + +LazyPixelRef::LazyPixelRef() : SkPixelRef(0) { +} + +LazyPixelRef::~LazyPixelRef() { +} + +} // namespace skia diff --git a/skia/ext/lazy_pixel_ref.h b/skia/ext/lazy_pixel_ref.h index eb1b096..c8a3a58 100644 --- a/skia/ext/lazy_pixel_ref.h +++ b/skia/ext/lazy_pixel_ref.h @@ -14,8 +14,8 @@ namespace skia { // thread. class SK_API LazyPixelRef : public SkPixelRef { public: - LazyPixelRef() : SkPixelRef(0) {} - virtual ~LazyPixelRef() {} + LazyPixelRef(); + virtual ~LazyPixelRef(); struct PrepareParams { // Clipping rect for this pixel ref. diff --git a/skia/skia.gyp b/skia/skia.gyp index b845456..e2a0ad9 100644 --- a/skia/skia.gyp +++ b/skia/skia.gyp @@ -167,6 +167,7 @@ 'ext/google_logging.cc', 'ext/image_operations.cc', 'ext/image_operations.h', + 'ext/lazy_pixel_ref.cc', 'ext/lazy_pixel_ref.h', 'ext/SkThread_chrome.cc', 'ext/platform_canvas.cc', -- cgit v1.1