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

Side by Side Diff: cc/output/direct_renderer.h

Issue 14960006: cc: Don't do CompositeAndReadback when using DelegatingRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 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 CC_OUTPUT_DIRECT_RENDERER_H_ 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ 6 #define CC_OUTPUT_DIRECT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/output/renderer.h" 11 #include "cc/output/renderer.h"
12 #include "cc/resources/resource_provider.h" 12 #include "cc/resources/resource_provider.h"
13 #include "cc/resources/scoped_resource.h" 13 #include "cc/resources/scoped_resource.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 class ResourceProvider; 17 class ResourceProvider;
18 18
19 // This is the base class for code shared between the GL and software 19 // This is the base class for code shared between the GL and software
20 // renderer implementations. "Direct" refers to the fact that it does not 20 // renderer implementations. "Direct" refers to the fact that it does not
21 // delegate rendering to another compositor. 21 // delegate rendering to another compositor.
22 class CC_EXPORT DirectRenderer : public Renderer { 22 class CC_EXPORT DirectRenderer : public Renderer {
23 public: 23 public:
24 virtual ~DirectRenderer(); 24 virtual ~DirectRenderer();
25 25
26 ResourceProvider* resource_provider() const { return resource_provider_; } 26 ResourceProvider* resource_provider() const { return resource_provider_; }
27 27
28 virtual bool CanReadPixels() const OVERRIDE;
28 virtual void DecideRenderPassAllocationsForFrame( 29 virtual void DecideRenderPassAllocationsForFrame(
29 const RenderPassList& render_passes_in_draw_order) OVERRIDE; 30 const RenderPassList& render_passes_in_draw_order) OVERRIDE;
30 virtual bool HaveCachedResourcesForRenderPassId(RenderPass::Id id) const 31 virtual bool HaveCachedResourcesForRenderPassId(RenderPass::Id id) const
31 OVERRIDE; 32 OVERRIDE;
32 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order) OVERRIDE; 33 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order) OVERRIDE;
33 34
34 struct CC_EXPORT DrawingFrame { 35 struct CC_EXPORT DrawingFrame {
35 DrawingFrame(); 36 DrawingFrame();
36 ~DrawingFrame(); 37 ~DrawingFrame();
37 38
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 private: 124 private:
124 gfx::Vector2d enlarge_pass_texture_amount_; 125 gfx::Vector2d enlarge_pass_texture_amount_;
125 126
126 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 127 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
127 }; 128 };
128 129
129 } // namespace cc 130 } // namespace cc
130 131
131 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 132 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698