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

Side by Side Diff: Source/platform/graphics/RecordingImageBufferSurface.cpp

Issue 1195963006: Removing getBackingTextureImage from ImageBufferSurface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix unit test Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 6
7 #include "platform/graphics/RecordingImageBufferSurface.h" 7 #include "platform/graphics/RecordingImageBufferSurface.h"
8 8
9 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" 9 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h"
10 #include "platform/graphics/GraphicsContext.h" 10 #include "platform/graphics/GraphicsContext.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 return ImageBufferSurface::layer(); 259 return ImageBufferSurface::layer();
260 } 260 }
261 261
262 bool RecordingImageBufferSurface::isAccelerated() const 262 bool RecordingImageBufferSurface::isAccelerated() const
263 { 263 {
264 if (m_fallbackSurface) 264 if (m_fallbackSurface)
265 return m_fallbackSurface->isAccelerated(); 265 return m_fallbackSurface->isAccelerated();
266 return ImageBufferSurface::isAccelerated(); 266 return ImageBufferSurface::isAccelerated();
267 } 267 }
268 268
269 PassRefPtr<SkImage> RecordingImageBufferSurface::getBackingTextureImage() const
270 {
271 if (m_fallbackSurface)
272 return m_fallbackSurface->getBackingTextureImage();
273 return ImageBufferSurface::getBackingTextureImage();
274 }
275
276 bool RecordingImageBufferSurface::cachedBitmapEnabled() const 269 bool RecordingImageBufferSurface::cachedBitmapEnabled() const
277 { 270 {
278 if (m_fallbackSurface) 271 if (m_fallbackSurface)
279 return m_fallbackSurface->cachedBitmapEnabled(); 272 return m_fallbackSurface->cachedBitmapEnabled();
280 return ImageBufferSurface::cachedBitmapEnabled(); 273 return ImageBufferSurface::cachedBitmapEnabled();
281 } 274 }
282 275
283 const SkBitmap& RecordingImageBufferSurface::cachedBitmap() const 276 const SkBitmap& RecordingImageBufferSurface::cachedBitmap() const
284 { 277 {
285 if (m_fallbackSurface) 278 if (m_fallbackSurface)
(...skipping 19 matching lines...) Expand all
305 298
306 void RecordingImageBufferSurface::setIsHidden(bool hidden) 299 void RecordingImageBufferSurface::setIsHidden(bool hidden)
307 { 300 {
308 if (m_fallbackSurface) 301 if (m_fallbackSurface)
309 m_fallbackSurface->setIsHidden(hidden); 302 m_fallbackSurface->setIsHidden(hidden);
310 else 303 else
311 ImageBufferSurface::setIsHidden(hidden); 304 ImageBufferSurface::setIsHidden(hidden);
312 } 305 }
313 306
314 } // namespace blink 307 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/RecordingImageBufferSurface.h ('k') | Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698