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

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

Issue 315393002: Record SkPicture with correct LCD text setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated unittests 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
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_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_ 5 #ifndef CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_
6 #define CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_ 6 #define CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_
7 7
8 #include "cc/resources/skpicture_content_layer_updater.h" 8 #include "cc/resources/skpicture_content_layer_updater.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 10
(...skipping 15 matching lines...) Expand all
26 bool partial_update) OVERRIDE; 26 bool partial_update) OVERRIDE;
27 27
28 private: 28 private:
29 SkBitmap bitmap_; 29 SkBitmap bitmap_;
30 BitmapSkPictureContentLayerUpdater* updater_; 30 BitmapSkPictureContentLayerUpdater* updater_;
31 31
32 DISALLOW_COPY_AND_ASSIGN(Resource); 32 DISALLOW_COPY_AND_ASSIGN(Resource);
33 }; 33 };
34 34
35 static scoped_refptr<BitmapSkPictureContentLayerUpdater> Create( 35 static scoped_refptr<BitmapSkPictureContentLayerUpdater> Create(
36 scoped_ptr<LayerPainter> painter, 36 scoped_ptr<ContentLayerPainter> painter,
37 RenderingStatsInstrumentation* stats_instrumentation, 37 RenderingStatsInstrumentation* stats_instrumentation,
38 int layer_id); 38 int layer_id);
39 39
40 virtual scoped_ptr<LayerUpdater::Resource> CreateResource( 40 virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
41 PrioritizedResourceManager* manager) OVERRIDE; 41 PrioritizedResourceManager* manager) OVERRIDE;
42 void PaintContentsRect(SkCanvas* canvas, 42 void PaintContentsRect(SkCanvas* canvas,
43 const gfx::Rect& source_rect); 43 const gfx::Rect& source_rect);
44 44
45 private: 45 private:
46 BitmapSkPictureContentLayerUpdater( 46 BitmapSkPictureContentLayerUpdater(
47 scoped_ptr<LayerPainter> painter, 47 scoped_ptr<ContentLayerPainter> painter,
48 RenderingStatsInstrumentation* stats_instrumentation, 48 RenderingStatsInstrumentation* stats_instrumentation,
49 int layer_id); 49 int layer_id);
50 virtual ~BitmapSkPictureContentLayerUpdater(); 50 virtual ~BitmapSkPictureContentLayerUpdater();
51 51
52 DISALLOW_COPY_AND_ASSIGN(BitmapSkPictureContentLayerUpdater); 52 DISALLOW_COPY_AND_ASSIGN(BitmapSkPictureContentLayerUpdater);
53 }; 53 };
54 54
55 } // namespace cc 55 } // namespace cc
56 56
57 #endif // CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_ 57 #endif // CC_RESOURCES_BITMAP_SKPICTURE_CONTENT_LAYER_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698