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

Side by Side Diff: cc/tile_draw_quad.cc

Issue 11777025: cc: Implement DelegatingRender::drawFrame() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for-landing Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/tile_draw_quad.h ('k') | cc/yuv_video_draw_quad.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #include "cc/tile_draw_quad.h" 5 #include "cc/tile_draw_quad.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/khronos/GLES2/gl2.h" 8 #include "third_party/khronos/GLES2/gl2.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 this->resource_id = resource_id; 68 this->resource_id = resource_id;
69 this->tex_coord_rect = tex_coord_rect; 69 this->tex_coord_rect = tex_coord_rect;
70 this->texture_size = texture_size; 70 this->texture_size = texture_size;
71 this->swizzle_contents = swizzle_contents; 71 this->swizzle_contents = swizzle_contents;
72 this->left_edge_aa = left_edge_aa; 72 this->left_edge_aa = left_edge_aa;
73 this->top_edge_aa = top_edge_aa; 73 this->top_edge_aa = top_edge_aa;
74 this->right_edge_aa = right_edge_aa; 74 this->right_edge_aa = right_edge_aa;
75 this->bottom_edge_aa = bottom_edge_aa; 75 this->bottom_edge_aa = bottom_edge_aa;
76 } 76 }
77 77
78 void TileDrawQuad::AppendResources(
79 ResourceProvider::ResourceIdArray* resources) {
80 resources->push_back(resource_id);
81 }
82
78 const TileDrawQuad* TileDrawQuad::MaterialCast( 83 const TileDrawQuad* TileDrawQuad::MaterialCast(
79 const DrawQuad* quad) { 84 const DrawQuad* quad) {
80 DCHECK(quad->material == DrawQuad::TILED_CONTENT); 85 DCHECK(quad->material == DrawQuad::TILED_CONTENT);
81 return static_cast<const TileDrawQuad*>(quad); 86 return static_cast<const TileDrawQuad*>(quad);
82 } 87 }
83 88
84 } // namespace cc 89 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tile_draw_quad.h ('k') | cc/yuv_video_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698