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

Side by Side Diff: cc/image_layer.h

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 #ifndef ImageLayerChromium_h 5 #ifndef ImageLayerChromium_h
6 #define ImageLayerChromium_h 6 #define ImageLayerChromium_h
7 7
8 #include "cc/content_layer.h" 8 #include "cc/content_layer.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class ImageLayerTextureUpdater; 13 class ImageLayerTextureUpdater;
14 14
15 // A Layer that contains only an Image element. 15 // A Layer that contains only an Image element.
16 class ImageLayerChromium : public TiledLayerChromium { 16 class ImageLayer : public TiledLayer {
17 public: 17 public:
18 static scoped_refptr<ImageLayerChromium> create(); 18 static scoped_refptr<ImageLayer> create();
19 19
20 virtual bool drawsContent() const OVERRIDE; 20 virtual bool drawsContent() const OVERRIDE;
21 virtual void setTexturePriorities(const CCPriorityCalculator&) OVERRIDE; 21 virtual void setTexturePriorities(const PriorityCalculator&) OVERRIDE;
22 virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRend eringStats&) OVERRIDE; 22 virtual void update(TextureUpdateQueue&, const OcclusionTracker*, RenderingS tats&) OVERRIDE;
23 virtual bool needsContentsScale() const OVERRIDE; 23 virtual bool needsContentsScale() const OVERRIDE;
24 24
25 void setBitmap(const SkBitmap& image); 25 void setBitmap(const SkBitmap& image);
26 26
27 private: 27 private:
28 ImageLayerChromium(); 28 ImageLayer();
29 virtual ~ImageLayerChromium(); 29 virtual ~ImageLayer();
30 30
31 void setTilingOption(TilingOption); 31 void setTilingOption(TilingOption);
32 32
33 virtual LayerTextureUpdater* textureUpdater() const OVERRIDE; 33 virtual LayerTextureUpdater* textureUpdater() const OVERRIDE;
34 virtual void createTextureUpdaterIfNeeded() OVERRIDE; 34 virtual void createTextureUpdaterIfNeeded() OVERRIDE;
35 virtual IntSize contentBounds() const OVERRIDE; 35 virtual IntSize contentBounds() const OVERRIDE;
36 36
37 SkBitmap m_bitmap; 37 SkBitmap m_bitmap;
38 38
39 scoped_refptr<ImageLayerTextureUpdater> m_textureUpdater; 39 scoped_refptr<ImageLayerTextureUpdater> m_textureUpdater;
40 }; 40 };
41 41
42 } // namespace cc 42 } // namespace cc
43 43
44 #endif 44 #endif
OLDNEW
« cc/active_animation.h ('K') | « cc/heads_up_display_unittest.cc ('k') | cc/image_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698