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

Unified Diff: cc/quads/surface_draw_quad.cc

Issue 1496103002: Reusing base::IdType<...> to implement SurfaceId. Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-id-base
Patch Set: Rebasing + dusting off... Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/quads/surface_draw_quad.h ('k') | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/surface_draw_quad.cc
diff --git a/cc/quads/surface_draw_quad.cc b/cc/quads/surface_draw_quad.cc
index 655158152a6ee5e795d13d9ed3586c41cec7d574..5757dc23a79b5c68c1f0ad2ada58854f4b888996 100644
--- a/cc/quads/surface_draw_quad.cc
+++ b/cc/quads/surface_draw_quad.cc
@@ -10,8 +10,9 @@
namespace cc {
-SurfaceDrawQuad::SurfaceDrawQuad() {
-}
+SurfaceDrawQuad::SurfaceDrawQuad() {}
+
+SurfaceDrawQuad::~SurfaceDrawQuad() {}
void SurfaceDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
const gfx::Rect& rect,
@@ -41,7 +42,7 @@ const SurfaceDrawQuad* SurfaceDrawQuad::MaterialCast(const DrawQuad* quad) {
}
void SurfaceDrawQuad::ExtendValue(base::trace_event::TracedValue* value) const {
- value->SetInteger("surface_id", surface_id.id);
+ value->SetInteger("surface_id", surface_id.GetUnsafeValue());
}
« no previous file with comments | « cc/quads/surface_draw_quad.h ('k') | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698