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

Side by Side Diff: cc/direct_renderer.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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/delegated_renderer_layer_impl.h ('k') | cc/draw_quad.h » ('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 CCDirectRenderer_h 5 #ifndef CCDirectRenderer_h
6 #define CCDirectRenderer_h 6 #define CCDirectRenderer_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/cc_export.h"
9 #include "cc/renderer.h" 10 #include "cc/renderer.h"
10 #include "cc/resource_provider.h" 11 #include "cc/resource_provider.h"
11 #include "cc/scoped_texture.h" 12 #include "cc/scoped_texture.h"
12 13
13 namespace cc { 14 namespace cc {
14 15
15 class ResourceProvider; 16 class ResourceProvider;
16 17
17 // This is the base class for code shared between the GL and software 18 // This is the base class for code shared between the GL and software
18 // renderer implementations. "Direct" refers to the fact that it does not 19 // renderer implementations. "Direct" refers to the fact that it does not
19 // delegate rendering to another compositor. 20 // delegate rendering to another compositor.
20 class DirectRenderer : public Renderer { 21 class CC_EXPORT DirectRenderer : public Renderer {
21 public: 22 public:
22 virtual ~DirectRenderer(); 23 virtual ~DirectRenderer();
23 24
24 ResourceProvider* resourceProvider() const { return m_resourceProvider; } 25 ResourceProvider* resourceProvider() const { return m_resourceProvider; }
25 26
26 virtual void decideRenderPassAllocationsForFrame(const RenderPassList& rende rPassesInDrawOrder) OVERRIDE; 27 virtual void decideRenderPassAllocationsForFrame(const RenderPassList& rende rPassesInDrawOrder) OVERRIDE;
27 virtual bool haveCachedResourcesForRenderPassId(RenderPass::Id) const OVERRI DE; 28 virtual bool haveCachedResourcesForRenderPassId(RenderPass::Id) const OVERRI DE;
28 virtual void drawFrame(const RenderPassList& renderPassesInDrawOrder, const RenderPassIdHashMap& renderPassesById) OVERRIDE; 29 virtual void drawFrame(const RenderPassList& renderPassesInDrawOrder, const RenderPassIdHashMap& renderPassesById) OVERRIDE;
29 30
30 protected: 31 protected:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 ScopedPtrHashMap<RenderPass::Id, CachedTexture> m_renderPassTextures; 97 ScopedPtrHashMap<RenderPass::Id, CachedTexture> m_renderPassTextures;
97 ResourceProvider* m_resourceProvider; 98 ResourceProvider* m_resourceProvider;
98 99
99 private: 100 private:
100 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 101 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
101 }; 102 };
102 103
103 } // namespace cc 104 } // namespace cc
104 105
105 #endif // CCDirectRenderer_h 106 #endif // CCDirectRenderer_h
OLDNEW
« no previous file with comments | « cc/delegated_renderer_layer_impl.h ('k') | cc/draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698