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

Side by Side Diff: cc/layers/solid_color_layer_impl.cc

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
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 #include "cc/layers/solid_color_layer_impl.h" 5 #include "cc/layers/solid_color_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "cc/layers/quad_sink.h" 9 #include "cc/layers/quad_sink.h"
10 #include "cc/quads/solid_color_draw_quad.h" 10 #include "cc/quads/solid_color_draw_quad.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 shared_quad_state, solid_tile_rect, background_color(), false); 43 shared_quad_state, solid_tile_rect, background_color(), false);
44 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); 44 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data);
45 } 45 }
46 } 46 }
47 } 47 }
48 48
49 const char* SolidColorLayerImpl::LayerTypeAsString() const { 49 const char* SolidColorLayerImpl::LayerTypeAsString() const {
50 return "cc::SolidColorLayerImpl"; 50 return "cc::SolidColorLayerImpl";
51 } 51 }
52 52
53 bool SolidColorLayerImpl::CanDrawInTilelessSoftwareMode() const {
54 return true;
55 }
56
53 } // namespace cc 57 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698