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

Side by Side Diff: cc/FrameBufferSkPictureCanvasLayerTextureUpdater.cpp

Issue 10879109: Update libcc / bindings snapshot to WebKit r126830 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « cc/CCScrollbarLayerImpl.cpp ('k') | cc/ScrollbarLayerChromium.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #if USE(ACCELERATED_COMPOSITING) 8 #if USE(ACCELERATED_COMPOSITING)
9 9
10 #include "FrameBufferSkPictureCanvasLayerTextureUpdater.h" 10 #include "FrameBufferSkPictureCanvasLayerTextureUpdater.h"
(...skipping 11 matching lines...) Expand all
22 namespace WebCore { 22 namespace WebCore {
23 23
24 static PassOwnPtr<SkCanvas> createAcceleratedCanvas(GrContext* grContext, 24 static PassOwnPtr<SkCanvas> createAcceleratedCanvas(GrContext* grContext,
25 IntSize canvasSize, 25 IntSize canvasSize,
26 unsigned textureId) 26 unsigned textureId)
27 { 27 {
28 GrPlatformTextureDesc textureDesc; 28 GrPlatformTextureDesc textureDesc;
29 textureDesc.fFlags = kRenderTarget_GrPlatformTextureFlag; 29 textureDesc.fFlags = kRenderTarget_GrPlatformTextureFlag;
30 textureDesc.fWidth = canvasSize.width(); 30 textureDesc.fWidth = canvasSize.width();
31 textureDesc.fHeight = canvasSize.height(); 31 textureDesc.fHeight = canvasSize.height();
32 textureDesc.fConfig = kSkia8888_PM_GrPixelConfig; 32 textureDesc.fConfig = kSkia8888_GrPixelConfig;
33 textureDesc.fTextureHandle = textureId; 33 textureDesc.fTextureHandle = textureId;
34 SkAutoTUnref<GrTexture> target(grContext->createPlatformTexture(textureDesc) ); 34 SkAutoTUnref<GrTexture> target(grContext->createPlatformTexture(textureDesc) );
35 SkAutoTUnref<SkDevice> device(new SkGpuDevice(grContext, target.get())); 35 SkAutoTUnref<SkDevice> device(new SkGpuDevice(grContext, target.get()));
36 return adoptPtr(new SkCanvas(device.get())); 36 return adoptPtr(new SkCanvas(device.get()));
37 } 37 }
38 38
39 FrameBufferSkPictureCanvasLayerTextureUpdater::Texture::Texture(FrameBufferSkPic tureCanvasLayerTextureUpdater* textureUpdater, PassOwnPtr<CCPrioritizedTexture> texture) 39 FrameBufferSkPictureCanvasLayerTextureUpdater::Texture::Texture(FrameBufferSkPic tureCanvasLayerTextureUpdater* textureUpdater, PassOwnPtr<CCPrioritizedTexture> texture)
40 : LayerTextureUpdater::Texture(texture) 40 : LayerTextureUpdater::Texture(texture)
41 , m_textureUpdater(textureUpdater) 41 , m_textureUpdater(textureUpdater)
42 { 42 {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Flush ganesh context so that all the rendered stuff appears on the textur e. 106 // Flush ganesh context so that all the rendered stuff appears on the textur e.
107 grContext->flush(); 107 grContext->flush();
108 108
109 // Flush the GL context so rendering results from this context are visible i n the compositor's context. 109 // Flush the GL context so rendering results from this context are visible i n the compositor's context.
110 context->flush(); 110 context->flush();
111 } 111 }
112 112
113 } // namespace WebCore 113 } // namespace WebCore
114 #endif // USE(ACCELERATED_COMPOSITING) 114 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « cc/CCScrollbarLayerImpl.cpp ('k') | cc/ScrollbarLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698