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

Side by Side Diff: cc/tiles/tile_manager.cc

Issue 1837263005: cc: Rename DisplayListRasterSource to just RasterSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/tiles/tile_manager.h ('k') | cc/tiles/tile_manager_perftest.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 #include "cc/tiles/tile_manager.h" 5 #include "cc/tiles/tile_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 26 matching lines...) Expand all
37 const bool kUseColorEstimator = true; 37 const bool kUseColorEstimator = true;
38 38
39 DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER( 39 DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER(
40 ScopedRasterTaskTimer, 40 ScopedRasterTaskTimer,
41 "Compositing.%s.RasterTask.RasterUs", 41 "Compositing.%s.RasterTask.RasterUs",
42 "Compositing.%s.RasterTask.RasterPixelsPerMs"); 42 "Compositing.%s.RasterTask.RasterPixelsPerMs");
43 43
44 class RasterTaskImpl : public RasterTask { 44 class RasterTaskImpl : public RasterTask {
45 public: 45 public:
46 RasterTaskImpl(const Resource* resource, 46 RasterTaskImpl(const Resource* resource,
47 scoped_refptr<DisplayListRasterSource> raster_source, 47 scoped_refptr<RasterSource> raster_source,
48 const gfx::Rect& content_rect, 48 const gfx::Rect& content_rect,
49 const gfx::Rect& invalid_content_rect, 49 const gfx::Rect& invalid_content_rect,
50 float contents_scale, 50 float contents_scale,
51 bool include_images, 51 bool include_images,
52 TileResolution tile_resolution, 52 TileResolution tile_resolution,
53 int layer_id, 53 int layer_id,
54 uint64_t source_prepare_tiles_id, 54 uint64_t source_prepare_tiles_id,
55 const void* tile, 55 const void* tile,
56 uint64_t new_content_id, 56 uint64_t new_content_id,
57 uint64_t previous_content_id, 57 uint64_t previous_content_id,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void CompleteOnOriginThread(TileTaskClient* client) override { 105 void CompleteOnOriginThread(TileTaskClient* client) override {
106 client->ReleaseBufferForRaster(std::move(raster_buffer_)); 106 client->ReleaseBufferForRaster(std::move(raster_buffer_));
107 reply_.Run(!HasFinishedRunning()); 107 reply_.Run(!HasFinishedRunning());
108 } 108 }
109 109
110 protected: 110 protected:
111 ~RasterTaskImpl() override { DCHECK(!raster_buffer_); } 111 ~RasterTaskImpl() override { DCHECK(!raster_buffer_); }
112 112
113 private: 113 private:
114 const Resource* resource_; 114 const Resource* resource_;
115 scoped_refptr<DisplayListRasterSource> raster_source_; 115 scoped_refptr<RasterSource> raster_source_;
116 gfx::Rect content_rect_; 116 gfx::Rect content_rect_;
117 gfx::Rect invalid_content_rect_; 117 gfx::Rect invalid_content_rect_;
118 float contents_scale_; 118 float contents_scale_;
119 bool include_images_; 119 bool include_images_;
120 TileResolution tile_resolution_; 120 TileResolution tile_resolution_;
121 int layer_id_; 121 int layer_id_;
122 uint64_t source_prepare_tiles_id_; 122 uint64_t source_prepare_tiles_id_;
123 const void* tile_; 123 const void* tile_;
124 uint64_t new_content_id_; 124 uint64_t new_content_id_;
125 uint64_t previous_content_id_; 125 uint64_t previous_content_id_;
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 void TileManager::Signals::reset() { 1212 void TileManager::Signals::reset() {
1213 ready_to_activate = false; 1213 ready_to_activate = false;
1214 did_notify_ready_to_activate = false; 1214 did_notify_ready_to_activate = false;
1215 ready_to_draw = false; 1215 ready_to_draw = false;
1216 did_notify_ready_to_draw = false; 1216 did_notify_ready_to_draw = false;
1217 all_tile_tasks_completed = false; 1217 all_tile_tasks_completed = false;
1218 did_notify_all_tile_tasks_completed = false; 1218 did_notify_all_tile_tasks_completed = false;
1219 } 1219 }
1220 1220
1221 } // namespace cc 1221 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.h ('k') | cc/tiles/tile_manager_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698