| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "skia/ext/platform_device.h" | 6 #include "skia/ext/platform_device.h" |
| 7 | 7 |
| 8 #include "third_party/skia/include/core/SkMetaData.h" | 8 #include "third_party/skia/include/core/SkMetaData.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 if (device) { | 24 if (device) { |
| 25 SkMetaData& meta_data = device->getMetaData(); | 25 SkMetaData& meta_data = device->getMetaData(); |
| 26 PlatformDevice* device_behaviour = NULL; | 26 PlatformDevice* device_behaviour = NULL; |
| 27 if (meta_data.findPtr(kDevicePlatformBehaviour, | 27 if (meta_data.findPtr(kDevicePlatformBehaviour, |
| 28 reinterpret_cast<void**>(&device_behaviour))) | 28 reinterpret_cast<void**>(&device_behaviour))) |
| 29 return device_behaviour; | 29 return device_behaviour; |
| 30 } | 30 } |
| 31 return NULL; | 31 return NULL; |
| 32 } | 32 } |
| 33 | 33 |
| 34 PlatformDevice::~PlatformDevice() {} |
| 35 |
| 34 } // namespace skia | 36 } // namespace skia |
| OLD | NEW |