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

Side by Side Diff: cc/layers/delegated_renderer_layer_impl.h

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/delegated_renderer_layer.h ('k') | cc/layers/delegated_renderer_layer_impl.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 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_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/base/scoped_ptr_vector.h" 10 #include "cc/base/scoped_ptr_vector.h"
11 #include "cc/layers/layer_impl.h" 11 #include "cc/layers/layer_impl.h"
12 12
13 namespace cc { 13 namespace cc {
14 class DelegatedFrameData; 14 class DelegatedFrameData;
15 15
16 class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl { 16 class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl {
17 public: 17 public:
18 static scoped_ptr<DelegatedRendererLayerImpl> Create( 18 static scoped_ptr<DelegatedRendererLayerImpl> Create(
19 LayerTreeImpl* tree_impl, int id) { 19 LayerTreeImpl* tree_impl, int id) {
20 return make_scoped_ptr(new DelegatedRendererLayerImpl(tree_impl, id)); 20 return make_scoped_ptr(new DelegatedRendererLayerImpl(tree_impl, id));
21 } 21 }
22 virtual ~DelegatedRendererLayerImpl(); 22 virtual ~DelegatedRendererLayerImpl();
23 23
24 // LayerImpl overrides. 24 // LayerImpl overrides.
25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl*) OVERRIDE; 25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
26 OVERRIDE;
26 virtual bool HasDelegatedContent() const OVERRIDE; 27 virtual bool HasDelegatedContent() const OVERRIDE;
27 virtual bool HasContributingDelegatedRenderPasses() const OVERRIDE; 28 virtual bool HasContributingDelegatedRenderPasses() const OVERRIDE;
28 virtual RenderPass::Id FirstContributingRenderPassId() const OVERRIDE; 29 virtual RenderPass::Id FirstContributingRenderPassId() const OVERRIDE;
29 virtual RenderPass::Id NextContributingRenderPassId( 30 virtual RenderPass::Id NextContributingRenderPassId(
30 RenderPass::Id previous) const OVERRIDE; 31 RenderPass::Id previous) const OVERRIDE;
31 virtual void DidLoseOutputSurface() OVERRIDE; 32 virtual void DidLoseOutputSurface() OVERRIDE;
32 virtual void AppendQuads(QuadSink* quad_sink, 33 virtual void AppendQuads(QuadSink* quad_sink,
33 AppendQuadsData* append_quads_data) OVERRIDE; 34 AppendQuadsData* append_quads_data) OVERRIDE;
34 35
35 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink); 36 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual const char* LayerTypeAsString() const OVERRIDE; 81 virtual const char* LayerTypeAsString() const OVERRIDE;
81 82
82 ScopedPtrVector<RenderPass> render_passes_in_draw_order_; 83 ScopedPtrVector<RenderPass> render_passes_in_draw_order_;
83 base::hash_map<RenderPass::Id, int> render_passes_index_by_id_; 84 base::hash_map<RenderPass::Id, int> render_passes_index_by_id_;
84 ResourceProvider::ResourceIdSet resources_; 85 ResourceProvider::ResourceIdSet resources_;
85 86
86 gfx::Size display_size_; 87 gfx::Size display_size_;
87 int child_id_; 88 int child_id_;
88 }; 89 };
89 90
90 } 91 } // namespace cc
91 92
92 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 93 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/delegated_renderer_layer.h ('k') | cc/layers/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698