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

Side by Side Diff: cc/output/gl_renderer.h

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_OUTPUT_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( 166 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad(
167 DrawingFrame* frame, 167 DrawingFrame* frame,
168 const RenderPassDrawQuad* quad, 168 const RenderPassDrawQuad* quad,
169 const gfx::Transform& contents_device_transform, 169 const gfx::Transform& contents_device_transform,
170 const gfx::QuadF* clip_region, 170 const gfx::QuadF* clip_region,
171 bool use_aa); 171 bool use_aa);
172 std::unique_ptr<ScopedResource> GetBackdropTexture( 172 std::unique_ptr<ScopedResource> GetBackdropTexture(
173 const gfx::Rect& bounding_rect); 173 const gfx::Rect& bounding_rect);
174 174
175 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); 175 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad);
176 skia::RefPtr<SkImage> ApplyBackgroundFilters( 176 sk_sp<SkImage> ApplyBackgroundFilters(DrawingFrame* frame,
177 DrawingFrame* frame, 177 const RenderPassDrawQuad* quad,
178 const RenderPassDrawQuad* quad, 178 ScopedResource* background_texture,
179 ScopedResource* background_texture, 179 const gfx::RectF& rect);
180 const gfx::RectF& rect);
181 180
182 void DrawRenderPassQuad(DrawingFrame* frame, 181 void DrawRenderPassQuad(DrawingFrame* frame,
183 const RenderPassDrawQuad* quadi, 182 const RenderPassDrawQuad* quadi,
184 const gfx::QuadF* clip_region); 183 const gfx::QuadF* clip_region);
185 void DrawSolidColorQuad(const DrawingFrame* frame, 184 void DrawSolidColorQuad(const DrawingFrame* frame,
186 const SolidColorDrawQuad* quad, 185 const SolidColorDrawQuad* quad,
187 const gfx::QuadF* clip_region); 186 const gfx::QuadF* clip_region);
188 void DrawStreamVideoQuad(const DrawingFrame* frame, 187 void DrawStreamVideoQuad(const DrawingFrame* frame,
189 const StreamVideoDrawQuad* quad, 188 const StreamVideoDrawQuad* quad,
190 const gfx::QuadF* clip_region); 189 const gfx::QuadF* clip_region);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 514
516 SkBitmap on_demand_tile_raster_bitmap_; 515 SkBitmap on_demand_tile_raster_bitmap_;
517 ResourceId on_demand_tile_raster_resource_id_; 516 ResourceId on_demand_tile_raster_resource_id_;
518 BoundGeometry bound_geometry_; 517 BoundGeometry bound_geometry_;
519 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 518 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
520 }; 519 };
521 520
522 } // namespace cc 521 } // namespace cc
523 522
524 #endif // CC_OUTPUT_GL_RENDERER_H_ 523 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698