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

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

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: . Created 5 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DISPLAY_LIST_RASTER_SOURCE_H_ 5 #ifndef CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_
6 #define CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_ 6 #define CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 21
22 class CC_EXPORT DisplayListRasterSource : public RasterSource { 22 class CC_EXPORT DisplayListRasterSource : public RasterSource {
23 public: 23 public:
24 static scoped_refptr<DisplayListRasterSource> 24 static scoped_refptr<DisplayListRasterSource>
25 CreateFromDisplayListRecordingSource(const DisplayListRecordingSource* other, 25 CreateFromDisplayListRecordingSource(const DisplayListRecordingSource* other,
26 bool can_use_lcd_text); 26 bool can_use_lcd_text);
27 27
28 // RasterSource overrides. 28 // RasterSource overrides.
29 void PlaybackToCanvas(SkCanvas* canvas, 29 void PlaybackToCanvas(SkCanvas* canvas,
30 const gfx::Rect& canvas_rect, 30 const gfx::Rect& canvas_rect,
31 float contents_scale) const override; 31 float contents_scale,
32 bool partial_update) const override;
32 void PlaybackToSharedCanvas(SkCanvas* canvas, 33 void PlaybackToSharedCanvas(SkCanvas* canvas,
33 const gfx::Rect& canvas_rect, 34 const gfx::Rect& canvas_rect,
34 float contents_scale) const override; 35 float contents_scale) const override;
35 void PerformSolidColorAnalysis( 36 void PerformSolidColorAnalysis(
36 const gfx::Rect& content_rect, 37 const gfx::Rect& content_rect,
37 float contents_scale, 38 float contents_scale,
38 RasterSource::SolidColorAnalysis* analysis) const override; 39 RasterSource::SolidColorAnalysis* analysis) const override;
39 bool IsSolidColor() const override; 40 bool IsSolidColor() const override;
40 SkColor GetSolidColor() const override; 41 SkColor GetSolidColor() const override;
41 gfx::Size GetSize() const override; 42 gfx::Size GetSize() const override;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 SkDrawPictureCallback* callback, 90 SkDrawPictureCallback* callback,
90 const gfx::Rect& canvas_rect, 91 const gfx::Rect& canvas_rect,
91 float contents_scale) const; 92 float contents_scale) const;
92 93
93 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); 94 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource);
94 }; 95 };
95 96
96 } // namespace cc 97 } // namespace cc
97 98
98 #endif // CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_ 99 #endif // CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698