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

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

Issue 315393002: Record SkPicture with correct LCD text setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-add PictureLayer changes Created 6 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/picture_layer.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_PICTURE_LAYER_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_H_
6 #define CC_LAYERS_PICTURE_LAYER_H_ 6 #define CC_LAYERS_PICTURE_LAYER_H_
7 7
8 #include "cc/base/invalidation_region.h" 8 #include "cc/base/invalidation_region.h"
9 #include "cc/debug/devtools_instrumentation.h" 9 #include "cc/debug/devtools_instrumentation.h"
10 #include "cc/debug/micro_benchmark_controller.h" 10 #include "cc/debug/micro_benchmark_controller.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ContentLayerClient* client() { return client_; } 42 ContentLayerClient* client() { return client_; }
43 43
44 Picture::RecordingMode RecordingMode() const; 44 Picture::RecordingMode RecordingMode() const;
45 45
46 PicturePile* GetPicturePileForTesting() const { return pile_.get(); } 46 PicturePile* GetPicturePileForTesting() const { return pile_.get(); }
47 47
48 protected: 48 protected:
49 explicit PictureLayer(ContentLayerClient* client); 49 explicit PictureLayer(ContentLayerClient* client);
50 virtual ~PictureLayer(); 50 virtual ~PictureLayer();
51 51
52 void UpdateCanUseLCDText();
53
52 private: 54 private:
53 ContentLayerClient* client_; 55 ContentLayerClient* client_;
54 scoped_refptr<PicturePile> pile_; 56 scoped_refptr<PicturePile> pile_;
55 devtools_instrumentation:: 57 devtools_instrumentation::
56 ScopedLayerObjectTracker instrumentation_object_tracker_; 58 ScopedLayerObjectTracker instrumentation_object_tracker_;
57 // Invalidation to use the next time update is called. 59 // Invalidation to use the next time update is called.
58 InvalidationRegion pending_invalidation_; 60 InvalidationRegion pending_invalidation_;
59 // Invalidation from the last time update was called. 61 // Invalidation from the last time update was called.
60 Region pile_invalidation_; 62 Region pile_invalidation_;
61 gfx::Rect last_updated_visible_content_rect_; 63 gfx::Rect last_updated_visible_content_rect_;
62 bool is_mask_; 64 bool is_mask_;
63 65
64 int update_source_frame_number_; 66 int update_source_frame_number_;
67 bool can_use_lcd_text_last_frame_;
65 68
66 DISALLOW_COPY_AND_ASSIGN(PictureLayer); 69 DISALLOW_COPY_AND_ASSIGN(PictureLayer);
67 }; 70 };
68 71
69 } // namespace cc 72 } // namespace cc
70 73
71 #endif // CC_LAYERS_PICTURE_LAYER_H_ 74 #endif // CC_LAYERS_PICTURE_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698