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

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

Issue 6309007: O2D: Fix graphical artifacting with transparent images caused by using non-pr... (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 | « no previous file | core/cross/cairo/texture_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 2011, 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.
11 * * Redistributions in binary form must reproduce the above 11 * * Redistributions in binary form must reproduce the above
12 * copyright notice, this list of conditions and the following disclaimer 12 * copyright notice, this list of conditions and the following disclaimer
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Overridden from Texture2D 92 // Overridden from Texture2D
93 virtual RenderSurface::Ref PlatformSpecificGetRenderSurface(int mip_level); 93 virtual RenderSurface::Ref PlatformSpecificGetRenderSurface(int mip_level);
94 94
95 // Returns the implementation-specific texture handle for this texture. 95 // Returns the implementation-specific texture handle for this texture.
96 virtual void* GetTextureHandle() const; 96 virtual void* GetTextureHandle() const;
97 97
98 private: 98 private:
99 // Initializes the Texture2D. 99 // Initializes the Texture2D.
100 TextureCairo(ServiceLocator* service_locator, 100 TextureCairo(ServiceLocator* service_locator,
101 cairo_surface_t* image_surface, 101 cairo_surface_t* image_surface,
102 cairo_t* image_surface_context,
103 Texture::Format format, 102 Texture::Format format,
104 int levels, 103 int levels,
105 int width, 104 int width,
106 int height, 105 int height,
107 bool enable_render_surfaces); 106 bool enable_render_surfaces);
108 107
109 // The 2d renderer object to be used by client. 108 // The 2d renderer object to be used by client.
110 RendererCairo* renderer_; 109 RendererCairo* renderer_;
111 // The Cairo image for this texture. 110 // The Cairo image for this texture.
112 cairo_surface_t* image_surface_; 111 cairo_surface_t* image_surface_;
113 // A Cairo drawing context for updating this image.
114 cairo_t* image_surface_context_;
115 }; 112 };
116 113
117 } // namespace o2d 114 } // namespace o2d
118 115
119 } // namespace o3d 116 } // namespace o3d
120 117
121 #endif // O3D_CORE_CROSS_CAIRO_TEXTURE_CAIRO_H_ 118 #endif // O3D_CORE_CROSS_CAIRO_TEXTURE_CAIRO_H_
OLDNEW
« no previous file with comments | « no previous file | core/cross/cairo/texture_cairo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698