OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/plugins/ppapi/ppb_image_data_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 121 } |
122 | 122 |
123 skia::PlatformCanvas* PPB_ImageData_Impl::GetPlatformCanvas() { | 123 skia::PlatformCanvas* PPB_ImageData_Impl::GetPlatformCanvas() { |
124 return backend_->GetPlatformCanvas(); | 124 return backend_->GetPlatformCanvas(); |
125 } | 125 } |
126 | 126 |
127 SkCanvas* PPB_ImageData_Impl::GetCanvas() { | 127 SkCanvas* PPB_ImageData_Impl::GetCanvas() { |
128 return backend_->GetCanvas(); | 128 return backend_->GetCanvas(); |
129 } | 129 } |
130 | 130 |
| 131 void PPB_ImageData_Impl::SetUsedInReplaceContents() { |
| 132 // Nothing to do since we don't support image data re-use in-process. |
| 133 } |
| 134 |
131 const SkBitmap* PPB_ImageData_Impl::GetMappedBitmap() const { | 135 const SkBitmap* PPB_ImageData_Impl::GetMappedBitmap() const { |
132 return backend_->GetMappedBitmap(); | 136 return backend_->GetMappedBitmap(); |
133 } | 137 } |
134 | 138 |
135 // ImageDataPlatformBackend -------------------------------------------------- | 139 // ImageDataPlatformBackend -------------------------------------------------- |
136 | 140 |
137 ImageDataPlatformBackend::ImageDataPlatformBackend() { | 141 ImageDataPlatformBackend::ImageDataPlatformBackend() { |
138 } | 142 } |
139 | 143 |
140 ImageDataPlatformBackend::~ImageDataPlatformBackend() { | 144 ImageDataPlatformBackend::~ImageDataPlatformBackend() { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 } | 282 } |
279 | 283 |
280 const SkBitmap* ImageDataNaClBackend::GetMappedBitmap() const { | 284 const SkBitmap* ImageDataNaClBackend::GetMappedBitmap() const { |
281 if (!IsMapped()) | 285 if (!IsMapped()) |
282 return NULL; | 286 return NULL; |
283 return &skia_bitmap_; | 287 return &skia_bitmap_; |
284 } | 288 } |
285 | 289 |
286 } // namespace ppapi | 290 } // namespace ppapi |
287 } // namespace webkit | 291 } // namespace webkit |
OLD | NEW |