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

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

Issue 1230203007: Re-land: cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add ContextProvider::ScopedContextGL class Created 5 years, 5 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_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"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RasterSource* 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 70
71 virtual void ReleaseFreeMemory() {}
72
71 // Type-checking downcast routine. 73 // Type-checking downcast routine.
72 virtual TileTaskRunner* AsTileTaskRunner() = 0; 74 virtual TileTaskRunner* AsTileTaskRunner() = 0;
73 }; 75 };
74 76
75 } // namespace cc 77 } // namespace cc
76 78
77 #endif // CC_RASTER_TILE_TASK_WORKER_POOL_H_ 79 #endif // CC_RASTER_TILE_TASK_WORKER_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698