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

Side by Side Diff: src/views/SkWindow.cpp

Issue 1397123002: Move functions from SkGr to SkGrPriv.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 9th time's a charm? Created 5 years, 2 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
« no previous file with comments | « src/utils/SkImageGeneratorUtils.cpp ('k') | tests/GrGetCoeffBlendKnownComponentsTest.cpp » ('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 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 "GrContext.h"
9 #include "SkCanvas.h" 10 #include "SkCanvas.h"
10 #include "SkOSMenu.h" 11 #include "SkOSMenu.h"
11 #include "SkSurface.h" 12 #include "SkSurface.h"
12 #include "SkSystemEventTypes.h" 13 #include "SkSystemEventTypes.h"
13 #include "SkTime.h" 14 #include "SkTime.h"
14 15
15 #define SK_EventDelayInval "\xd" "n" "\xa" "l" 16 #define SK_EventDelayInval "\xd" "n" "\xa" "l"
16 17
17 SkWindow::SkWindow() 18 SkWindow::SkWindow()
18 : fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType) 19 : fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 desc.fOrigin = kBottomLeft_GrSurfaceOrigin; 330 desc.fOrigin = kBottomLeft_GrSurfaceOrigin;
330 desc.fSampleCnt = attachmentInfo.fSampleCount; 331 desc.fSampleCnt = attachmentInfo.fSampleCount;
331 desc.fStencilBits = attachmentInfo.fStencilBits; 332 desc.fStencilBits = attachmentInfo.fStencilBits;
332 GrGLint buffer; 333 GrGLint buffer;
333 GR_GL_GetIntegerv(interface, GR_GL_FRAMEBUFFER_BINDING, &buffer); 334 GR_GL_GetIntegerv(interface, GR_GL_FRAMEBUFFER_BINDING, &buffer);
334 desc.fRenderTargetHandle = buffer; 335 desc.fRenderTargetHandle = buffer;
335 return grContext->textureProvider()->wrapBackendRenderTarget(desc); 336 return grContext->textureProvider()->wrapBackendRenderTarget(desc);
336 } 337 }
337 338
338 #endif 339 #endif
OLDNEW
« no previous file with comments | « src/utils/SkImageGeneratorUtils.cpp ('k') | tests/GrGetCoeffBlendKnownComponentsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698