OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkWindow.h" | 8 #include "SkWindow.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkOSMenu.h" | 10 #include "SkOSMenu.h" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 GrBackendRenderTargetDesc desc; | 353 GrBackendRenderTargetDesc desc; |
354 desc.fWidth = SkScalarRoundToInt(this->width()); | 354 desc.fWidth = SkScalarRoundToInt(this->width()); |
355 desc.fHeight = SkScalarRoundToInt(this->height()); | 355 desc.fHeight = SkScalarRoundToInt(this->height()); |
356 desc.fConfig = kSkia8888_GrPixelConfig; | 356 desc.fConfig = kSkia8888_GrPixelConfig; |
357 desc.fOrigin = kBottomLeft_GrSurfaceOrigin; | 357 desc.fOrigin = kBottomLeft_GrSurfaceOrigin; |
358 desc.fSampleCnt = attachmentInfo.fSampleCount; | 358 desc.fSampleCnt = attachmentInfo.fSampleCount; |
359 desc.fStencilBits = attachmentInfo.fStencilBits; | 359 desc.fStencilBits = attachmentInfo.fStencilBits; |
360 GrGLint buffer; | 360 GrGLint buffer; |
361 GR_GL_GetIntegerv(interface, GR_GL_FRAMEBUFFER_BINDING, &buffer); | 361 GR_GL_GetIntegerv(interface, GR_GL_FRAMEBUFFER_BINDING, &buffer); |
362 desc.fRenderTargetHandle = buffer; | 362 desc.fRenderTargetHandle = buffer; |
363 return grContext->wrapBackendRenderTarget(desc); | 363 return grContext->textureProvider()->wrapBackendRenderTarget(desc); |
364 } | 364 } |
365 | 365 |
366 #endif | 366 #endif |
OLD | NEW |