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

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

Issue 860813002: Remove the default format from ResourcePool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error in perftest. Created 5 years, 11 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 "base/threading/platform_thread.h" 8 #include "base/threading/platform_thread.h"
9 #include "cc/resources/tile_task_runner.h" 9 #include "cc/resources/tile_task_runner.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 static void PlaybackToMemory(void* memory, 73 static void PlaybackToMemory(void* memory,
74 ResourceFormat format, 74 ResourceFormat format,
75 const gfx::Size& size, 75 const gfx::Size& size,
76 int stride, 76 int stride,
77 const RasterSource* raster_source, 77 const RasterSource* raster_source,
78 const gfx::Rect& rect, 78 const gfx::Rect& rect,
79 float scale); 79 float scale);
80 80
81 // Type-checking downcast routine. 81 // Type-checking downcast routine.
82 virtual TileTaskRunner* AsTileTaskRunner() = 0; 82 virtual TileTaskRunner* AsTileTaskRunner() = 0;
83
84 // Returns the most appropriate format to use.
85 virtual ResourceFormat GetResourceFormat() = 0;
reveman 2015/01/22 23:01:46 How about we make this part of the TileTaskRunner
peterp 2015/01/23 13:19:06 Good idea. Done.
83 }; 86 };
84 87
85 } // namespace cc 88 } // namespace cc
86 89
87 #endif // CC_RESOURCES_TILE_TASK_WORKER_POOL_H_ 90 #endif // CC_RESOURCES_TILE_TASK_WORKER_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698