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

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

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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/raster/texture_compressor_perftest.cc ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RUNNER_H_ 5 #ifndef CC_RASTER_TILE_TASK_RUNNER_H_
6 #define CC_RASTER_TILE_TASK_RUNNER_H_ 6 #define CC_RASTER_TILE_TASK_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "cc/raster/task_graph_runner.h" 13 #include "cc/raster/task_graph_runner.h"
14 #include "cc/resources/resource_format.h" 14 #include "cc/resources/resource_format.h"
15 15
16 namespace cc { 16 namespace cc {
17 class ImageDecodeTask; 17 class ImageDecodeTask;
18 class RasterTask; 18 class RasterTask;
19 class Resource; 19 class Resource;
20 class RasterBuffer; 20 class RasterBuffer;
21 21
22 class CC_EXPORT TileTaskClient { 22 class CC_EXPORT TileTaskClient {
23 public: 23 public:
24 virtual scoped_ptr<RasterBuffer> AcquireBufferForRaster( 24 virtual std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
25 const Resource* resource, 25 const Resource* resource,
26 uint64_t resource_content_id, 26 uint64_t resource_content_id,
27 uint64_t previous_content_id) = 0; 27 uint64_t previous_content_id) = 0;
28 virtual void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) = 0; 28 virtual void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) = 0;
29 29
30 protected: 30 protected:
31 virtual ~TileTaskClient() {} 31 virtual ~TileTaskClient() {}
32 }; 32 };
33 33
34 class CC_EXPORT TileTask : public Task { 34 class CC_EXPORT TileTask : public Task {
35 public: 35 public:
36 typedef std::vector<scoped_refptr<TileTask>> Vector; 36 typedef std::vector<scoped_refptr<TileTask>> Vector;
37 37
38 virtual void ScheduleOnOriginThread(TileTaskClient* client) = 0; 38 virtual void ScheduleOnOriginThread(TileTaskClient* client) = 0;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 protected: 106 protected:
107 // Check if resource format matches output format. 107 // Check if resource format matches output format.
108 static bool ResourceFormatRequiresSwizzle(ResourceFormat format); 108 static bool ResourceFormatRequiresSwizzle(ResourceFormat format);
109 109
110 virtual ~TileTaskRunner() {} 110 virtual ~TileTaskRunner() {}
111 }; 111 };
112 112
113 } // namespace cc 113 } // namespace cc
114 114
115 #endif // CC_RASTER_TILE_TASK_RUNNER_H_ 115 #endif // CC_RASTER_TILE_TASK_RUNNER_H_
OLDNEW
« no previous file with comments | « cc/raster/texture_compressor_perftest.cc ('k') | cc/raster/tile_task_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698