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

Side by Side Diff: cc/content_layer.h

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (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
« no previous file with comments | « cc/completion_event.h ('k') | cc/content_layer.cc » ('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 2012 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
5
6 #ifndef ContentLayerChromium_h
7 #define ContentLayerChromium_h
8
9 #if USE(ACCELERATED_COMPOSITING)
10
11 #include "base/basictypes.h"
12 #include "LayerPainterChromium.h"
13 #include "TiledLayerChromium.h"
14
15 class SkCanvas;
16
17 namespace cc {
18
19 class ContentLayerChromiumClient;
20 class FloatRect;
21 class IntRect;
22 class LayerTextureUpdater;
23
24 class ContentLayerPainter : public LayerPainterChromium {
25 public:
26 static PassOwnPtr<ContentLayerPainter> create(ContentLayerChromiumClient*);
27
28 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque) OVERRIDE;
29
30 private:
31 explicit ContentLayerPainter(ContentLayerChromiumClient*);
32
33 ContentLayerChromiumClient* m_client;
34
35 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter);
36 };
37
38 // A layer that renders its contents into an SkCanvas.
39 class ContentLayerChromium : public TiledLayerChromium {
40 public:
41 static scoped_refptr<ContentLayerChromium> create(ContentLayerChromiumClient *);
42
43 void clearClient() { m_client = 0; }
44
45 virtual bool drawsContent() const OVERRIDE;
46 virtual void setTexturePriorities(const CCPriorityCalculator&) OVERRIDE;
47 virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRend eringStats&) OVERRIDE;
48 virtual bool needMoreUpdates() OVERRIDE;
49
50 virtual void setContentsOpaque(bool) OVERRIDE;
51
52 protected:
53 explicit ContentLayerChromium(ContentLayerChromiumClient*);
54 virtual ~ContentLayerChromium();
55
56 private:
57 virtual LayerTextureUpdater* textureUpdater() const OVERRIDE;
58 virtual void createTextureUpdaterIfNeeded() OVERRIDE;
59
60 ContentLayerChromiumClient* m_client;
61 RefPtr<LayerTextureUpdater> m_textureUpdater;
62 };
63
64 }
65 #endif // USE(ACCELERATED_COMPOSITING)
66
67 #endif
OLDNEW
« no previous file with comments | « cc/completion_event.h ('k') | cc/content_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698