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

Side by Side Diff: cc/resources/tile.h

Issue 13726013: Smart layer invalidation for LCD text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error 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/resources/picture_pile_impl.cc ('k') | skia/ext/analysis_canvas.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_RESOURCES_TILE_H_ 5 #ifndef CC_RESOURCES_TILE_H_
6 #define CC_RESOURCES_TILE_H_ 6 #define CC_RESOURCES_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 scoped_ptr<base::Value> AsValue() const; 48 scoped_ptr<base::Value> AsValue() const;
49 49
50 const ManagedTileState::DrawingInfo& drawing_info() const { 50 const ManagedTileState::DrawingInfo& drawing_info() const {
51 return managed_state_.drawing_info; 51 return managed_state_.drawing_info;
52 } 52 }
53 ManagedTileState::DrawingInfo& drawing_info() { 53 ManagedTileState::DrawingInfo& drawing_info() {
54 return managed_state_.drawing_info; 54 return managed_state_.drawing_info;
55 } 55 }
56 56
57 const gfx::Rect& opaque_rect() const { return opaque_rect_; } 57 const gfx::Rect& opaque_rect() const { return opaque_rect_; }
58 bool has_text() const {
59 return managed_state_.picture_pile_analysis.has_text;
60 }
58 61
59 float contents_scale() const { return contents_scale_; } 62 float contents_scale() const { return contents_scale_; }
60 gfx::Rect content_rect() const { return content_rect_; } 63 gfx::Rect content_rect() const { return content_rect_; }
61 64
62 int layer_id() const { return layer_id_; } 65 int layer_id() const { return layer_id_; }
63 66
64 void set_picture_pile(scoped_refptr<PicturePileImpl> pile) { 67 void set_picture_pile(scoped_refptr<PicturePileImpl> pile) {
65 DCHECK(pile->CanRaster(contents_scale_, content_rect_)); 68 DCHECK(pile->CanRaster(contents_scale_, content_rect_));
66 picture_pile_ = pile; 69 picture_pile_ = pile;
67 } 70 }
(...skipping 24 matching lines...) Expand all
92 TilePriority priority_[NUM_BIN_PRIORITIES]; 95 TilePriority priority_[NUM_BIN_PRIORITIES];
93 ManagedTileState managed_state_; 96 ManagedTileState managed_state_;
94 int layer_id_; 97 int layer_id_;
95 98
96 DISALLOW_COPY_AND_ASSIGN(Tile); 99 DISALLOW_COPY_AND_ASSIGN(Tile);
97 }; 100 };
98 101
99 } // namespace cc 102 } // namespace cc
100 103
101 #endif // CC_RESOURCES_TILE_H_ 104 #endif // CC_RESOURCES_TILE_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_pile_impl.cc ('k') | skia/ext/analysis_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698