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

Side by Side Diff: cc/BitmapCanvasLayerTextureUpdater.h

Issue 11044003: Reduce texture uploads during scrollbar invalidations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DEPS for skia/ext access. Created 8 years, 2 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 | « no previous file | cc/DEPS » ('j') | cc/caching_bitmap_canvas_layer_texture_updater.h » ('J')
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 #ifndef BitmapCanvasLayerTextureUpdater_h 6 #ifndef BitmapCanvasLayerTextureUpdater_h
7 #define BitmapCanvasLayerTextureUpdater_h 7 #define BitmapCanvasLayerTextureUpdater_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 BitmapCanvasLayerTextureUpdater* m_textureUpdater; 34 BitmapCanvasLayerTextureUpdater* m_textureUpdater;
35 }; 35 };
36 36
37 static PassRefPtr<BitmapCanvasLayerTextureUpdater> create(PassOwnPtr<LayerPa interChromium>); 37 static PassRefPtr<BitmapCanvasLayerTextureUpdater> create(PassOwnPtr<LayerPa interChromium>);
38 virtual ~BitmapCanvasLayerTextureUpdater(); 38 virtual ~BitmapCanvasLayerTextureUpdater();
39 39
40 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized TextureManager*) OVERRIDE; 40 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized TextureManager*) OVERRIDE;
41 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI DE; 41 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI DE;
42 virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tile Size, float contentsWidthScale, float contentsHeightScale, IntRect& resultingOpa queRect, CCRenderingStats&) OVERRIDE; 42 virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tile Size, float contentsWidthScale, float contentsHeightScale, IntRect& resultingOpa queRect, CCRenderingStats&) OVERRIDE;
43 void updateTextureRect(CCResourceProvider*, CCPrioritizedTexture*, const Int Rect& sourceRect, const IntSize& destOffset); 43 virtual void updateTextureRect(CCResourceProvider*, CCPrioritizedTexture*, c onst IntRect& sourceRect, const IntSize& destOffset);
44 44
45 virtual void setOpaque(bool) OVERRIDE; 45 virtual void setOpaque(bool) OVERRIDE;
46 46
47 private: 47 protected:
48 explicit BitmapCanvasLayerTextureUpdater(PassOwnPtr<LayerPainterChromium>); 48 explicit BitmapCanvasLayerTextureUpdater(PassOwnPtr<LayerPainterChromium>);
49 49
50 OwnPtr<SkCanvas> m_canvas; 50 OwnPtr<SkCanvas> m_canvas;
51 IntSize m_canvasSize; 51 IntSize m_canvasSize;
52 bool m_opaque; 52 bool m_opaque;
53 }; 53 };
54 54
55 } // namespace cc 55 } // namespace cc
56 #endif // USE(ACCELERATED_COMPOSITING) 56 #endif // USE(ACCELERATED_COMPOSITING)
57 #endif // BitmapCanvasLayerTextureUpdater_h 57 #endif // BitmapCanvasLayerTextureUpdater_h
OLDNEW
« no previous file with comments | « no previous file | cc/DEPS » ('j') | cc/caching_bitmap_canvas_layer_texture_updater.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698