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

Side by Side Diff: cc/raster/tile_task_worker_pool.h

Issue 1405883002: cc: Remove the base RasterSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge more Created 5 years, 2 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/raster/raster_buffer.h ('k') | cc/raster/tile_task_worker_pool.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RASTER_TILE_TASK_WORKER_POOL_H_ 5 #ifndef CC_RASTER_TILE_TASK_WORKER_POOL_H_
6 #define CC_RASTER_TILE_TASK_WORKER_POOL_H_ 6 #define CC_RASTER_TILE_TASK_WORKER_POOL_H_
7 7
8 #include "cc/raster/tile_task_runner.h" 8 #include "cc/raster/tile_task_runner.h"
9 #include "ui/gfx/geometry/rect.h" 9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
11 11
12 namespace base { 12 namespace base {
13 class SequencedTaskRunner; 13 class SequencedTaskRunner;
14 } 14 }
15 15
16 namespace cc { 16 namespace cc {
17 class RasterSource; 17 class DisplayListRasterSource;
18 class RenderingStatsInstrumentation; 18 class RenderingStatsInstrumentation;
19 19
20 class CC_EXPORT TileTaskWorkerPool { 20 class CC_EXPORT TileTaskWorkerPool {
21 public: 21 public:
22 static size_t kBenchmarkTaskPriority; 22 static size_t kBenchmarkTaskPriority;
23 static size_t kTaskSetFinishedTaskPriorityBase; 23 static size_t kTaskSetFinishedTaskPriorityBase;
24 static size_t kTileTaskPriorityBase; 24 static size_t kTileTaskPriorityBase;
25 25
26 TileTaskWorkerPool(); 26 TileTaskWorkerPool();
27 virtual ~TileTaskWorkerPool(); 27 virtual ~TileTaskWorkerPool();
(...skipping 28 matching lines...) Expand all
56 // Utility function that will create a temporary bitmap and copy pixels to 56 // Utility function that will create a temporary bitmap and copy pixels to
57 // |memory| when necessary. The |canvas_bitmap_rect| is the rect of the bitmap 57 // |memory| when necessary. The |canvas_bitmap_rect| is the rect of the bitmap
58 // being played back in the pixel space of the source, ie a rect in the source 58 // being played back in the pixel space of the source, ie a rect in the source
59 // that will cover the resulting |memory|. The |canvas_playback_rect| can be a 59 // that will cover the resulting |memory|. The |canvas_playback_rect| can be a
60 // smaller contained rect inside the |canvas_bitmap_rect| if the |memory| is 60 // smaller contained rect inside the |canvas_bitmap_rect| if the |memory| is
61 // already partially complete, and only the subrect needs to be played back. 61 // already partially complete, and only the subrect needs to be played back.
62 static void PlaybackToMemory(void* memory, 62 static void PlaybackToMemory(void* memory,
63 ResourceFormat format, 63 ResourceFormat format,
64 const gfx::Size& size, 64 const gfx::Size& size,
65 size_t stride, 65 size_t stride,
66 const RasterSource* raster_source, 66 const DisplayListRasterSource* raster_source,
67 const gfx::Rect& canvas_bitmap_rect, 67 const gfx::Rect& canvas_bitmap_rect,
68 const gfx::Rect& canvas_playback_rect, 68 const gfx::Rect& canvas_playback_rect,
69 float scale, 69 float scale,
70 bool include_images); 70 bool include_images);
71 71
72 // Type-checking downcast routine. 72 // Type-checking downcast routine.
73 virtual TileTaskRunner* AsTileTaskRunner() = 0; 73 virtual TileTaskRunner* AsTileTaskRunner() = 0;
74 }; 74 };
75 75
76 } // namespace cc 76 } // namespace cc
77 77
78 #endif // CC_RASTER_TILE_TASK_WORKER_POOL_H_ 78 #endif // CC_RASTER_TILE_TASK_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/raster/raster_buffer.h ('k') | cc/raster/tile_task_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698