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

Side by Side Diff: cc/resources/tile_task_worker_pool.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: spaces_sorted 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 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_RESOURCES_TILE_TASK_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_TILE_TASK_WORKER_POOL_H_
6 #define CC_RESOURCES_TILE_TASK_WORKER_POOL_H_ 6 #define CC_RESOURCES_TILE_TASK_WORKER_POOL_H_
7 7
8 #include "cc/resources/tile_task_runner.h" 8 #include "cc/resources/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"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 unsigned priority); 54 unsigned priority);
55 55
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. 57 // |memory| when necessary.
58 static void PlaybackToMemory(void* memory, 58 static void PlaybackToMemory(void* memory,
59 ResourceFormat format, 59 ResourceFormat format,
60 const gfx::Size& size, 60 const gfx::Size& size,
61 int stride, 61 int stride,
62 const RasterSource* raster_source, 62 const RasterSource* raster_source,
63 const gfx::Rect& rect, 63 const gfx::Rect& rect,
64 float scale); 64 const gfx::Vector2d& raster_offset,
65 float scale,
66 bool partial_update);
65 67
66 // Type-checking downcast routine. 68 // Type-checking downcast routine.
67 virtual TileTaskRunner* AsTileTaskRunner() = 0; 69 virtual TileTaskRunner* AsTileTaskRunner() = 0;
68 }; 70 };
69 71
70 } // namespace cc 72 } // namespace cc
71 73
72 #endif // CC_RESOURCES_TILE_TASK_WORKER_POOL_H_ 74 #endif // CC_RESOURCES_TILE_TASK_WORKER_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698