OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 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 | 5 |
6 #include "config.h" | 6 #include "config.h" |
7 | 7 |
8 #include "FrameBufferSkPictureCanvasLayerTextureUpdater.h" | 8 #include "FrameBufferSkPictureCanvasLayerTextureUpdater.h" |
9 | 9 |
10 #include "LayerPainterChromium.h" | 10 #include "LayerPainterChromium.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 FrameBufferSkPictureCanvasLayerTextureUpdater::~FrameBufferSkPictureCanvasLayerT
extureUpdater() | 39 FrameBufferSkPictureCanvasLayerTextureUpdater::~FrameBufferSkPictureCanvasLayerT
extureUpdater() |
40 { | 40 { |
41 } | 41 } |
42 | 42 |
43 PassOwnPtr<LayerTextureUpdater::Texture> FrameBufferSkPictureCanvasLayerTextureU
pdater::createTexture(CCPrioritizedTextureManager* manager) | 43 PassOwnPtr<LayerTextureUpdater::Texture> FrameBufferSkPictureCanvasLayerTextureU
pdater::createTexture(CCPrioritizedTextureManager* manager) |
44 { | 44 { |
45 return adoptPtr(new Texture(this, CCPrioritizedTexture::create(manager))); | 45 return adoptPtr(new Texture(this, CCPrioritizedTexture::create(manager))); |
46 } | 46 } |
47 | 47 |
48 LayerTextureUpdater::SampledTexelFormat FrameBufferSkPictureCanvasLayerTextureUp
dater::sampledTexelFormat(GC3Denum textureFormat) | 48 LayerTextureUpdater::SampledTexelFormat FrameBufferSkPictureCanvasLayerTextureUp
dater::sampledTexelFormat(GLenum textureFormat) |
49 { | 49 { |
50 // Here we directly render to the texture, so the component order is always
correct. | 50 // Here we directly render to the texture, so the component order is always
correct. |
51 return LayerTextureUpdater::SampledTexelFormatRGBA; | 51 return LayerTextureUpdater::SampledTexelFormatRGBA; |
52 } | 52 } |
53 | 53 |
54 } // namespace cc | 54 } // namespace cc |
OLD | NEW |