OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CachingBitmapCanvasLayerTextureUpdater_h | |
enne (OOO)
2012/10/02 21:07:18
If this is intended to be Chromium style, this is
wjmaclean
2012/10/02 21:43:46
Done.
| |
6 #define CachingBitmapCanvasLayerTextureUpdater_h | |
7 | |
8 #if USE(ACCELERATED_COMPOSITING) | |
jamesr
2012/10/02 20:57:54
don't do this
wjmaclean
2012/10/02 21:43:46
Done.
| |
9 | |
10 #include "BitmapCanvasLayerTextureUpdater.h" | |
11 | |
12 namespace cc { | |
13 | |
14 class CachingBitmapCanvasLayerTextureUpdater | |
15 : public BitmapCanvasLayerTextureUpdater { | |
16 public: | |
17 static PassRefPtr<CachingBitmapCanvasLayerTextureUpdater> Create( | |
18 PassOwnPtr<LayerPainterChromium>); | |
19 | |
20 virtual void prepareToUpdate(const IntRect& content_rect, | |
jamesr
2012/10/02 20:57:54
what style is this intended to be? In WebKit style
wjmaclean
2012/10/02 21:43:46
It's meant to be Chromium-style, but I've been abs
| |
21 const IntSize& tile_size, | |
22 float contents_width_scale, | |
23 float contents_height_scale, | |
24 IntRect& resulting_opaque_rect, | |
25 CCRenderingStats&) OVERRIDE; | |
jamesr
2012/10/02 20:57:54
you need base/compiler_specific.h to use OVERRIDE
wjmaclean
2012/10/02 21:43:46
Done.
| |
26 virtual void updateTextureRect(CCResourceProvider*, | |
jamesr
2012/10/02 20:57:54
blank line between functions please
wjmaclean
2012/10/02 21:43:46
Done.
| |
27 CCPrioritizedTexture*, | |
28 const IntRect& source_rect, | |
29 const IntSize& dest_offset) OVERRIDE; | |
30 | |
31 private: | |
32 CachingBitmapCanvasLayerTextureUpdater( | |
33 PassOwnPtr<LayerPainterChromium> painter); | |
34 | |
35 bool texture_ueeds_upload_; | |
jamesr
2012/10/02 20:57:54
typo 'ueeds'
wjmaclean
2012/10/02 21:43:46
Done.
| |
36 SkBitmap cached_bitmap_; | |
37 }; | |
38 | |
39 } // namespace cc | |
enne (OOO)
2012/10/02 21:07:18
Two spaces between } and //
wjmaclean
2012/10/02 21:43:46
Done.
| |
40 | |
41 #endif // USE(ACCELERATED_COMPOSITING) | |
42 #endif // CachingBitmapCanvasLayerTextureUpdater_h | |
enne (OOO)
2012/10/02 21:07:18
Two spaces between #endif and // too.
wjmaclean
2012/10/02 21:43:46
Done.
| |
OLD | NEW |