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

Side by Side Diff: cc/DelegatedRendererLayerChromium.h

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang 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/CCTileDrawQuad.h ('k') | cc/DelegatedRendererLayerChromium.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 2012 The Chromium Authors. All rights reserved. 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 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 DelegatedRendererLayerChromium_h 5 #ifndef DelegatedRendererLayerChromium_h
6 #define DelegatedRendererLayerChromium_h 6 #define DelegatedRendererLayerChromium_h
7 7
8 #include "LayerChromium.h" 8 #include <set>
9 #include "cc/compositor_frame.h"
10 #include "cc/LayerChromium.h"
11 #include "cc/transferable_resource.h"
9 12
10 namespace cc { 13 namespace cc {
11 14
12 class DelegatedRendererLayerChromium : public LayerChromium { 15 class DelegatedRendererLayerChromium : public LayerChromium {
13 public: 16 public:
14 static PassRefPtr<DelegatedRendererLayerChromium> create(); 17 static PassRefPtr<DelegatedRendererLayerChromium> create();
15 virtual ~DelegatedRendererLayerChromium(); 18 virtual ~DelegatedRendererLayerChromium();
16 19
17 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; 20 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
21 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE;
22
23 void setFrameData(const CompositorFrame& frame);
24 void getRecycledResources(TransferableResourceList* list);
18 25
19 protected: 26 protected:
20 DelegatedRendererLayerChromium(); 27 DelegatedRendererLayerChromium();
28
29 private:
30 bool m_new;
31 CompositorFrame m_frame;
32 std::set<unsigned> m_currentResources;
33 TransferableResourceList m_recyclingResources;
21 }; 34 };
22 35
23 } 36 }
24 #endif 37 #endif
OLDNEW
« no previous file with comments | « cc/CCTileDrawQuad.h ('k') | cc/DelegatedRendererLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698