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

Side by Side Diff: cc/layers/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: Address nits 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
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 virtual bool CanClipSelf() const; 412 virtual bool CanClipSelf() const;
413 413
414 virtual bool AreVisibleResourcesReady() const; 414 virtual bool AreVisibleResourcesReady() const;
415 415
416 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); 416 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
417 virtual void PushPropertiesTo(LayerImpl* layer); 417 virtual void PushPropertiesTo(LayerImpl* layer);
418 418
419 scoped_ptr<base::Value> AsValue() const; 419 scoped_ptr<base::Value> AsValue() const;
420 virtual size_t GPUMemoryUsageInBytes() const; 420 virtual size_t GPUMemoryUsageInBytes() const;
421 421
422 virtual bool CanDrawInTilelessSoftwareMode() const;
enne (OOO) 2013/05/30 17:04:37 I am generally averse to yet more virtual boolean
423
422 protected: 424 protected:
423 LayerImpl(LayerTreeImpl* layer_impl, int id); 425 LayerImpl(LayerTreeImpl* layer_impl, int id);
424 426
425 // Get the color and size of the layer's debug border. 427 // Get the color and size of the layer's debug border.
426 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; 428 virtual void GetDebugBorderProperties(SkColor* color, float* width) const;
427 429
428 void AppendDebugBorderQuad(QuadSink* quad_sink, 430 void AppendDebugBorderQuad(QuadSink* quad_sink,
429 const SharedQuadState* shared_quad_state, 431 const SharedQuadState* shared_quad_state,
430 AppendQuadsData* append_quads_data) const; 432 AppendQuadsData* append_quads_data) const;
431 void AppendDebugBorderQuad(QuadSink* quad_sink, 433 void AppendDebugBorderQuad(QuadSink* quad_sink,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 // Group of properties that need to be computed based on the layer tree 557 // Group of properties that need to be computed based on the layer tree
556 // hierarchy before layers can be drawn. 558 // hierarchy before layers can be drawn.
557 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; 559 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_;
558 560
559 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 561 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
560 }; 562 };
561 563
562 } // namespace cc 564 } // namespace cc
563 565
564 #endif // CC_LAYERS_LAYER_IMPL_H_ 566 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698