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

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

Issue 16211002: Skip drawing unsupported layers in forced software mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on r203584 Created 7 years, 6 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_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/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // LayerImpl overrides. 26 // LayerImpl overrides.
27 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) 27 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
28 OVERRIDE; 28 OVERRIDE;
29 virtual bool HasDelegatedContent() const OVERRIDE; 29 virtual bool HasDelegatedContent() const OVERRIDE;
30 virtual bool HasContributingDelegatedRenderPasses() const OVERRIDE; 30 virtual bool HasContributingDelegatedRenderPasses() const OVERRIDE;
31 virtual RenderPass::Id FirstContributingRenderPassId() const OVERRIDE; 31 virtual RenderPass::Id FirstContributingRenderPassId() const OVERRIDE;
32 virtual RenderPass::Id NextContributingRenderPassId( 32 virtual RenderPass::Id NextContributingRenderPassId(
33 RenderPass::Id previous) const OVERRIDE; 33 RenderPass::Id previous) const OVERRIDE;
34 virtual void DidLoseOutputSurface() OVERRIDE; 34 virtual void DidLoseOutputSurface() OVERRIDE;
35 virtual bool WillDraw(DrawMode draw_mode,
36 ResourceProvider* resource_provider) OVERRIDE;
35 virtual void AppendQuads(QuadSink* quad_sink, 37 virtual void AppendQuads(QuadSink* quad_sink,
36 AppendQuadsData* append_quads_data) OVERRIDE; 38 AppendQuadsData* append_quads_data) OVERRIDE;
37 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 39 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
38 40
39 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink); 41 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink);
40 42
41 void SetFrameData(scoped_ptr<DelegatedFrameData> frame_data, 43 void SetFrameData(scoped_ptr<DelegatedFrameData> frame_data,
42 gfx::RectF damage_in_frame, 44 gfx::RectF damage_in_frame,
43 TransferableResourceArray* resources_for_ack); 45 TransferableResourceArray* resources_for_ack);
44 46
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 gfx::Size display_size_; 93 gfx::Size display_size_;
92 int child_id_; 94 int child_id_;
93 bool own_child_id_; 95 bool own_child_id_;
94 96
95 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); 97 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl);
96 }; 98 };
97 99
98 } // namespace cc 100 } // namespace cc
99 101
100 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 102 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698