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

Side by Side Diff: core/cross/cairo/renderer_cairo.h

Issue 6255003: O2D:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 9 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 | « core/cross/cairo/pattern.cc ('k') | core/cross/cairo/renderer_cairo.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 /* 1 /*
2 * Copyright 2010, Google Inc. 2 * Copyright 2010, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 virtual void ApplyDirtyStates(); 211 virtual void ApplyDirtyStates();
212 212
213 // Sets the viewport. This is the platform specific version. 213 // Sets the viewport. This is the platform specific version.
214 virtual void SetViewportInPixels(int left, 214 virtual void SetViewportInPixels(int left,
215 int top, 215 int top,
216 int width, 216 int width,
217 int height, 217 int height,
218 float min_z, 218 float min_z,
219 float max_z); 219 float max_z);
220 220
221 // Mask the area of the current layer that will collide with other images. 221 // Clip the area of the current layer that will collide with other images.
222 void MaskArea(cairo_t* cr, LayerList::iterator it); 222 void ClipArea(cairo_t* cr, LayerList::iterator it);
223 223
224 // Paint the background with black color. 224 // Paint the background with black color.
225 // TODO(fransiskusx): Support changing the background color. 225 // TODO(fransiskusx): Support changing the background color.
226 void PaintBackground(cairo_t* cr); 226 void PaintBackground(cairo_t* cr);
227 227
228 // Linux Client Display 228 // Linux Client Display
229 Display* display_; 229 Display* display_;
230 // Linux Client Window 230 // Linux Client Window
231 Window window_; 231 Window window_;
232 232
233 // Main surface to render cairo 233 // Main surface to render cairo
234 cairo_surface_t* main_surface_; 234 cairo_surface_t* main_surface_;
235 235
236 // Draw the background 236 // Draw the background
237 cairo_t* bg_drawing_; 237 cairo_t* bg_drawing_;
238 238
239 // Array of Layer 239 // Array of Layer
240 LayerList layer_list_; 240 LayerList layer_list_;
241 }; 241 };
242 242
243 } // namespace o2d 243 } // namespace o2d
244 244
245 } // namespace o3d 245 } // namespace o3d
246 246
247 #endif // O3D_CORE_CROSS_CAIRO_RENDERER_CAIRO_H_ 247 #endif // O3D_CORE_CROSS_CAIRO_RENDERER_CAIRO_H_
OLDNEW
« no previous file with comments | « core/cross/cairo/pattern.cc ('k') | core/cross/cairo/renderer_cairo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698