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

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

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « cc/output/render_surface_filters.h ('k') | cc/output/renderer_capabilities.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 CC_OUTPUT_RENDERER_H_ 5 #ifndef CC_OUTPUT_RENDERER_H_
6 #define CC_OUTPUT_RENDERER_H_ 6 #define CC_OUTPUT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h"
10 #include "cc/base/scoped_ptr_vector.h" 9 #include "cc/base/scoped_ptr_vector.h"
11 #include "cc/output/renderer_capabilities.h" 10 #include "cc/output/renderer_capabilities.h"
12 #include "cc/output/renderer_settings.h" 11 #include "cc/output/renderer_settings.h"
13 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
14 13
15 namespace cc { 14 namespace cc {
16 15
17 class CompositorFrameAck; 16 class CompositorFrameAck;
18 class CompositorFrameMetadata; 17 class CompositorFrameMetadata;
19 class RenderPass; 18 class RenderPass;
(...skipping 16 matching lines...) Expand all
36 // Capabilities used on compositor thread only. 35 // Capabilities used on compositor thread only.
37 bool using_partial_swap; 36 bool using_partial_swap;
38 bool using_egl_image; 37 bool using_egl_image;
39 bool using_image; 38 bool using_image;
40 bool using_discard_framebuffer; 39 bool using_discard_framebuffer;
41 bool allow_rasterize_on_demand; 40 bool allow_rasterize_on_demand;
42 41
43 RendererCapabilities MainThreadCapabilities() const; 42 RendererCapabilities MainThreadCapabilities() const;
44 }; 43 };
45 44
46 class CC_EXPORT RendererClient { 45 class RendererClient {
47 public: 46 public:
48 virtual void SetFullRootLayerDamage() = 0; 47 virtual void SetFullRootLayerDamage() = 0;
49 }; 48 };
50 49
51 class CC_EXPORT Renderer { 50 class Renderer {
52 public: 51 public:
53 virtual ~Renderer() {} 52 virtual ~Renderer() {}
54 53
55 virtual const RendererCapabilitiesImpl& Capabilities() const = 0; 54 virtual const RendererCapabilitiesImpl& Capabilities() const = 0;
56 55
57 virtual void DecideRenderPassAllocationsForFrame( 56 virtual void DecideRenderPassAllocationsForFrame(
58 const RenderPassList& render_passes_in_draw_order) {} 57 const RenderPassList& render_passes_in_draw_order) {}
59 virtual bool HasAllocatedResourcesForTesting(RenderPassId id) const; 58 virtual bool HasAllocatedResourcesForTesting(RenderPassId id) const;
60 59
61 // This passes ownership of the render passes to the renderer. It should 60 // This passes ownership of the render passes to the renderer. It should
(...skipping 29 matching lines...) Expand all
91 const RendererSettings* settings_; 90 const RendererSettings* settings_;
92 bool visible_; 91 bool visible_;
93 92
94 private: 93 private:
95 DISALLOW_COPY_AND_ASSIGN(Renderer); 94 DISALLOW_COPY_AND_ASSIGN(Renderer);
96 }; 95 };
97 96
98 } // namespace cc 97 } // namespace cc
99 98
100 #endif // CC_OUTPUT_RENDERER_H_ 99 #endif // CC_OUTPUT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/render_surface_filters.h ('k') | cc/output/renderer_capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698