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 | |
6 #include "config.h" | 5 #include "config.h" |
7 | 6 |
8 #include "FrameBufferSkPictureCanvasLayerTextureUpdater.h" | 7 #include "cc/frame_buffer_skpicture_canvas_layer_texture_updater.h" |
9 | 8 |
10 #include "LayerPainterChromium.h" | 9 #include "cc/layer_painter.h" |
11 | 10 |
12 namespace cc { | 11 namespace cc { |
13 | 12 |
14 FrameBufferSkPictureCanvasLayerTextureUpdater::Texture::Texture(FrameBufferSkPic
tureCanvasLayerTextureUpdater* textureUpdater, scoped_ptr<CCPrioritizedTexture>
texture) | 13 FrameBufferSkPictureCanvasLayerTextureUpdater::Texture::Texture(FrameBufferSkPic
tureCanvasLayerTextureUpdater* textureUpdater, scoped_ptr<CCPrioritizedTexture>
texture) |
15 : LayerTextureUpdater::Texture(texture.Pass()) | 14 : LayerTextureUpdater::Texture(texture.Pass()) |
16 , m_textureUpdater(textureUpdater) | 15 , m_textureUpdater(textureUpdater) |
17 { | 16 { |
18 } | 17 } |
19 | 18 |
20 FrameBufferSkPictureCanvasLayerTextureUpdater::Texture::~Texture() | 19 FrameBufferSkPictureCanvasLayerTextureUpdater::Texture::~Texture() |
(...skipping 24 matching lines...) Expand all Loading... |
45 return adoptPtr(new Texture(this, CCPrioritizedTexture::create(manager))); | 44 return adoptPtr(new Texture(this, CCPrioritizedTexture::create(manager))); |
46 } | 45 } |
47 | 46 |
48 LayerTextureUpdater::SampledTexelFormat FrameBufferSkPictureCanvasLayerTextureUp
dater::sampledTexelFormat(GC3Denum textureFormat) | 47 LayerTextureUpdater::SampledTexelFormat FrameBufferSkPictureCanvasLayerTextureUp
dater::sampledTexelFormat(GC3Denum textureFormat) |
49 { | 48 { |
50 // Here we directly render to the texture, so the component order is always
correct. | 49 // Here we directly render to the texture, so the component order is always
correct. |
51 return LayerTextureUpdater::SampledTexelFormatRGBA; | 50 return LayerTextureUpdater::SampledTexelFormatRGBA; |
52 } | 51 } |
53 | 52 |
54 } // namespace cc | 53 } // namespace cc |
OLD | NEW |