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/gpu/GrGpu.h

Issue 174123003: Add hooks for GL_EXT_debug_marker in gpu (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Upload failed. Trying again Created 6 years, 10 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
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 #ifndef GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 // overridden by backend-specific derived class to perform the texture updat e 452 // overridden by backend-specific derived class to perform the texture updat e
453 virtual bool onWriteTexturePixels(GrTexture* texture, 453 virtual bool onWriteTexturePixels(GrTexture* texture,
454 int left, int top, int width, int height, 454 int left, int top, int width, int height,
455 GrPixelConfig config, const void* buffer, 455 GrPixelConfig config, const void* buffer,
456 size_t rowBytes) = 0; 456 size_t rowBytes) = 0;
457 457
458 // overridden by backend-specific derived class to perform the resolve 458 // overridden by backend-specific derived class to perform the resolve
459 virtual void onResolveRenderTarget(GrRenderTarget* target) = 0; 459 virtual void onResolveRenderTarget(GrRenderTarget* target) = 0;
460 460
461 // GrDrawTarget Overrides
462 virtual void onInstantGpuTraceEvent(const char* marker) SK_OVERRIDE = 0;
bsalomon 2014/02/21 17:03:07 I don't think we need to redeclare these as pure v
463 virtual void onPushGpuTraceEvent(const char* marker) SK_OVERRIDE = 0;
464 virtual void onPopGpuTraceEvent() SK_OVERRIDE = 0;
465
461 // width and height may be larger than rt (if underlying API allows it). 466 // width and height may be larger than rt (if underlying API allows it).
462 // Should attach the SB to the RT. Returns false if compatible sb could 467 // Should attach the SB to the RT. Returns false if compatible sb could
463 // not be created. 468 // not be created.
464 virtual bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, int height) = 0; 469 virtual bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, int height) = 0;
465 470
466 // attaches an existing SB to an existing RT. 471 // attaches an existing SB to an existing RT.
467 virtual bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTar get*) = 0; 472 virtual bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTar get*) = 0;
468 473
469 // The GrGpu typically records the clients requested state and then flushes 474 // The GrGpu typically records the clients requested state and then flushes
470 // deltas from previous state at draw time. This function does the 475 // deltas from previous state at draw time. This function does the
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // these are mutable so they can be created on-demand 524 // these are mutable so they can be created on-demand
520 mutable GrIndexBuffer* fQuadInd exBuffer; 525 mutable GrIndexBuffer* fQuadInd exBuffer;
521 // Used to abandon/release all resources created by this GrGpu. TODO: Move t his 526 // Used to abandon/release all resources created by this GrGpu. TODO: Move t his
522 // functionality to GrResourceCache. 527 // functionality to GrResourceCache.
523 ResourceList fResourc eList; 528 ResourceList fResourc eList;
524 529
525 typedef GrDrawTarget INHERITED; 530 typedef GrDrawTarget INHERITED;
526 }; 531 };
527 532
528 #endif 533 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698